unified error handling system
This commit is contained in:
5
app/views/static/error.json.erb
Normal file
5
app/views/static/error.json.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<% if @error_message %>
|
||||
{success: false, message: <%= raw @error_message.to_json %>}
|
||||
<% else %>
|
||||
{success: false, message: <%= raw @exception.to_s.to_json %>}
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user