mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 04:22:28 +01:00
Return JSON on error
This commit is contained in:
parent
76aa21c239
commit
c7c98881b9
@ -30,7 +30,7 @@ helpers do
|
||||
end
|
||||
|
||||
def halt_with_meaningful_response(status, message)
|
||||
halt status, message
|
||||
halt status, Yajl::Encoder.encode(error: { status: status, message: message })
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user