diff options
author | 6543 <6543@obermui.de> | 2020-05-28 18:58:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 13:58:11 -0300 |
commit | 9f5576980411385a21668ce5930e53b89be67a5e (patch) | |
tree | a95a5ba87b4ca0d63f598a0c0c5c614a63a66906 /models/gpg_key.go | |
parent | 3aedc795c4be04254e3400ea1ee85e1fd48ed55a (diff) | |
download | gitea-9f5576980411385a21668ce5930e53b89be67a5e.tar.gz gitea-9f5576980411385a21668ce5930e53b89be67a5e.zip |
Return json on 500 error from API (#11574)
* add API specific InternalServerError()
Co-authored-by: zeripath <art27@cantab.net>
* return 500 error msg only if not Production mode
* Revert "return 500 error msg only if not Production mode"
This reverts commit 8467b2cee674ad205b452780ca88abb1b27643c8.
* InternalServerError
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'models/gpg_key.go')
0 files changed, 0 insertions, 0 deletions