Log proper stack trace in case toggling repo throws
This commit is contained in:
parent
e6def5b3f8
commit
bb9ae35fd5
|
@ -81,8 +81,7 @@
|
||||||
{:enabled (not is-enabled)}
|
{:enabled (not is-enabled)}
|
||||||
(select-keys params [:id :full_name]))))
|
(select-keys params [:id :full_name]))))
|
||||||
(catch Exception e
|
(catch Exception e
|
||||||
(log/info "exception when enabling repo "
|
(log/error "exception when enabling repo" e)
|
||||||
(.getMessage e))
|
|
||||||
(repositories/update-repo repo-id {:state -1})
|
(repositories/update-repo repo-id {:state -1})
|
||||||
(internal-server-error))))))
|
(internal-server-error))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue