Преглед на файлове

Typo and error message improved

Stefan Profanter преди 6 години
родител
ревизия
ebbcd79e8d
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/server/ua_server_binary.c

+ 2 - 2
src/server/ua_server_binary.c

@@ -47,12 +47,12 @@ sendServiceFault(UA_SecureChannel *channel, const UA_ByteString *msg,
     responseHeader->timestamp = UA_DateTime_now();
     responseHeader->serviceResult = error;
 
-    // Send error message. Message type is MSG and not ERR, since we are on a securechanenl!
+    // Send error message. Message type is MSG and not ERR, since we are on a securechannel!
     retval = UA_SecureChannel_sendSymmetricMessage(channel, requestId, UA_MESSAGETYPE_MSG,
                                                    response, responseType);
     UA_RequestHeader_deleteMembers(&requestHeader);
     UA_LOG_DEBUG(channel->securityPolicy->logger, UA_LOGCATEGORY_SERVER,
-                 "Sent ServiceFault with error code %i", error);
+                 "Sent ServiceFault with error code %s", UA_StatusCode_name(error));
     return retval;
 }