Browse Source

Events: Improve logging of createEvent

Julius Pfrommer 6 years ago
parent
commit
f711ecc2a8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/server/ua_subscription_events.c

+ 3 - 1
src/server/ua_subscription_events.c

@@ -67,7 +67,9 @@ generateEventId(UA_ByteString *generatedId) {
 UA_StatusCode
 UA_Server_createEvent(UA_Server *server, const UA_NodeId eventType, UA_NodeId *outNodeId) {
     if(!outNodeId) {
-        UA_LOG_ERROR(&server->config.logger, UA_LOGCATEGORY_USERLAND, "outNodeId cannot be NULL!");
+        UA_LOG_ERROR(&server->config.logger, UA_LOGCATEGORY_USERLAND,
+                     "outNodeId must not be NULL. The event's NodeId must be returned "
+                     "so it can be triggered.");
         return UA_STATUSCODE_BADINVALIDARGUMENT;
     }