Print body error
This commit is contained in:
parent
2860b5c3fc
commit
281ae66387
@ -33,7 +33,7 @@ func routes(_ app: Application) throws {
|
||||
throw Abort(.badRequest)
|
||||
}
|
||||
guard let buffer = request.body.data else {
|
||||
log("Invalid body data")
|
||||
log("Missing body data: \(request.body.description)")
|
||||
throw CapError.invalidBody
|
||||
}
|
||||
let data = Data(buffer: buffer)
|
||||
|
Loading…
Reference in New Issue
Block a user