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)}
|
||||
(select-keys params [:id :full_name]))))
|
||||
(catch Exception e
|
||||
(log/info "exception when enabling repo "
|
||||
(.getMessage e))
|
||||
(log/error "exception when enabling repo" e)
|
||||
(repositories/update-repo repo-id {:state -1})
|
||||
(internal-server-error))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue