unified error handling system

This commit is contained in:
albert
2013-02-22 14:45:39 -05:00
parent a1737b3019
commit ae6e8fce30
10 changed files with 19 additions and 10 deletions

View 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 %>