Skip to content
Snippets Groups Projects
Commit c9061998 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Updating error output for search form

parent 8f82aa93
No related branches found
No related tags found
1 merge request!8Superevents
......@@ -78,5 +78,5 @@ class MainSearchForm(forms.Form):
raise forms.ValidationError({'query': mark_safe(err)})
except Exception as e:
# What could this be and how can we handle it better? XXX
logger.error(e)
raise forms.ValidationError(str(e)+str(type(e)))
logger.error('{t}: {e}'.format(t=str(type(e)), e=str(e)))
raise forms.ValidationError(str(e))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment