rapidzona; trap mysql error

so we see a proper error message instead of the useless general no-results-found message
This commit is contained in:
Garfield69 2024-04-21 09:22:44 +12:00
parent 181928364d
commit ad3784e100
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ search:
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
sortby: "{{ .Config.sort }}"
resorder: "{{ .Config.type }}"
error:
- selector: div:contains("MySQL Error!")
rows:
selector: div.post