added better error messages for search errors
This commit is contained in:
1
app/views/posts/error.html.erb
Normal file
1
app/views/posts/error.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<p>Error: <%= @exception.to_s %></p>
|
||||
1
app/views/posts/error.json.erb
Normal file
1
app/views/posts/error.json.erb
Normal file
@@ -0,0 +1 @@
|
||||
{success: false, message: "<%= @exception.to_s %>"}
|
||||
2
app/views/posts/error.xml.erb
Normal file
2
app/views/posts/error.xml.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<result success="false"><%= @exception.to_s %></result>
|
||||
Reference in New Issue
Block a user