gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Respond 500 for unmanaged exceptions


From: gnunet
Subject: [libeufin] branch master updated: Respond 500 for unmanaged exceptions
Date: Thu, 14 Jan 2021 10:49:49 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new e9a7711  Respond 500 for unmanaged exceptions
e9a7711 is described below

commit e9a771147e8d2d71cf61887ff8af9841f28dd0e8
Author: MS <ms@taler.net>
AuthorDate: Thu Jan 14 10:49:44 2021 +0100

    Respond 500 for unmanaged exceptions
---
 nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index c07f32e..e1ff46b 100644
--- 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",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]