diff --git a/src/ErrorHandler.cpp b/src/ErrorHandler.cpp
index d62eadd5025efb6ecbaa252def3a664ef1a8f55b..45ce0c01808a8a6bb93a98062ca63fd9bbca0b0a 100644
--- a/src/ErrorHandler.cpp
+++ b/src/ErrorHandler.cpp
@@ -43,7 +43,7 @@ void ErrorHandler::reportError(const Message &message, RoutingErrorType errorCod
 }
 
 void ErrorHandler::reportInternalError(ErrorHandler::InternalErrorType errorCode) {
-	logError(UnknownInternalError);
+	logError(errorCode);
 }
 
 template<typename ErrorType>