Commit bbd81049 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update harvesr/edit_insert to imporve error reporting.

parent aba498a5
......@@ -281,7 +281,7 @@ def edit_insert():
values["PublicationsYear"] = year
except Exception:
except Exception as e:
# log the exception in the web2py ticker system
ticket = RestrictedError(layer="",
......@@ -291,7 +291,7 @@ def edit_insert():
# inform the user that something went wrong in the server
raise HTTP(500)
raise HTTP(500, T(str(e)))
return dict(cfg=cfg, values=values)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment