From 41f30992aa92308a93c46fd8bdd80971e6e5e7e0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 28 Aug 2017 12:21:03 +0100 Subject: Messages: Return the unknown message if we get to the unhandled errorcode. We shouldn't get there though. --- utils/messages.c | 1 + 1 file changed, 1 insertion(+) (limited to 'utils') diff --git a/utils/messages.c b/utils/messages.c index bca1b47b0..0ff90b708 100644 --- a/utils/messages.c +++ b/utils/messages.c @@ -452,6 +452,7 @@ const char *messages_get_errorcode(nserror code) * never get here. */ assert(0); + return messages_get_ctx("Unknown", messages_hash); } -- cgit v1.2.3