From c906199882455cd3a1b9d32d376bdea3f2eae595 Mon Sep 17 00:00:00 2001
From: Tanner Prestegard <tanner.prestegard@ligo.org>
Date: Mon, 9 Jul 2018 10:00:05 -0500
Subject: [PATCH] Updating error output for search form

---
 gracedb/search/forms.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gracedb/search/forms.py b/gracedb/search/forms.py
index e9422cfa2..41a85cb33 100644
--- a/gracedb/search/forms.py
+++ b/gracedb/search/forms.py
@@ -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))
-- 
GitLab