diff options
author | MS <ms@taler.net> | 2021-01-27 16:08:39 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2021-01-27 16:08:39 +0100 |
commit | 3883732379d0dc00658f186145d6c4cf834a5d21 (patch) | |
tree | 4943148631451a2378b69c2a61af4c3790c16f8a /nexus | |
parent | 6feb227dd3f9b14c081e26e6caa09675a7d96070 (diff) | |
download | libeufin-3883732379d0dc00658f186145d6c4cf834a5d21.tar.gz libeufin-3883732379d0dc00658f186145d6c4cf834a5d21.tar.bz2 libeufin-3883732379d0dc00658f186145d6c4cf834a5d21.zip |
testing malformed JSON handling
Diffstat (limited to 'nexus')
-rw-r--r-- | nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 1 |
1 files changed, 0 insertions, 1 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 index d8da5fbc..fc08971f 100644 --- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt +++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt @@ -138,7 +138,6 @@ suspend inline fun <reified T : Any> ApplicationCall.receiveJson(): T { } catch (e: MissingKotlinParameterException) { throw NexusError(HttpStatusCode.BadRequest, "Missing value for ${e.pathReference}") } catch (e: MismatchedInputException) { - // Note: POSTing "[]" gets here but e.pathReference is blank. throw NexusError(HttpStatusCode.BadRequest, "Invalid value for '${e.pathReference}'") } catch (e: JsonParseException) { throw NexusError(HttpStatusCode.BadRequest, "Invalid JSON") |