Windream: Log if object does not exist
This commit is contained in:
@@ -1463,6 +1463,7 @@ Public Class Windream
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If TestObjectExists(ObjectName, ObjectType) = False Then
|
If TestObjectExists(ObjectName, ObjectType) = False Then
|
||||||
|
_logger.Warn("GetObjectByName: Object {0} does not exist!", ObjectName)
|
||||||
Return Nothing
|
Return Nothing
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -1481,6 +1482,7 @@ Public Class Windream
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If TestObjectExists(ObjectName, ObjectType) = False Then
|
If TestObjectExists(ObjectName, ObjectType) = False Then
|
||||||
|
_logger.Warn("GetObjectByPath: Object {0} does not exist!", ObjectName)
|
||||||
Return Nothing
|
Return Nothing
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user