mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 05:37:59 +01:00
More visible errors for parse errors (fixes philomena-dev/philomena#149)
This commit is contained in:
parent
9bb2ed3666
commit
4bb2e3078c
2 changed files with 5 additions and 5 deletions
|
@ -3,8 +3,8 @@
|
|||
= render PhilomenaWeb.ImageView, "index.html", conn: @conn, tags: @tags, images: @images, header: "Searching for #{@conn.params["q"]}", route: fn p -> Routes.search_path(@conn, :index, p) end, scope: scope(@conn)
|
||||
|
||||
- assigns[:error] ->
|
||||
p
|
||||
' Oops, there was an error evaluating your query:
|
||||
.block.block--fixed.block--danger
|
||||
' Oops, there was an error parsing your query! Check for mistakes like mismatched parentheses. The error was:
|
||||
pre = assigns[:error]
|
||||
|
||||
- blank?(@conn.params["q"]) ->
|
||||
|
|
|
@ -28,8 +28,8 @@ h2 Search Results
|
|||
= render PhilomenaWeb.PaginationView, "_pagination_info.html", page: @tags
|
||||
|
||||
- assigns[:error] ->
|
||||
p
|
||||
' Oops, there was an error evaluating your query:
|
||||
.block.block--fixed.block--danger
|
||||
' Oops, there was an error parsing your query! Check for mistakes like mismatched parentheses. The error was:
|
||||
pre = assigns[:error]
|
||||
|
||||
- true ->
|
||||
|
|
Loading…
Reference in a new issue