commit e9a771147e8d2d71cf61887ff8af9841f28dd0e8
parent 8e2c62b903e5d33b7a0cc4375c6ed262d1ecf0e0
Author: MS <ms@taler.net>
Date: Thu, 14 Jan 2021 10:49:44 +0100
Respond 500 for unmanaged exceptions
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -280,6 +280,7 @@ fun serverMain(dbName: String, host: String, port: Int) {
logger.error("Uncaught exception while handling '${call.request.uri}'")
logger.error(cause.stackTrace.toString())
call.respond(
+ HttpStatusCode.InternalServerError,
NexusErrorJson(
error = NexusErrorDetailJson(
type = "nexus-error",