mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 06:04:46 +08:00
Minor fix
This commit is contained in:
parent
6e993f41b8
commit
416ccf905d
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ module ClientApi
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def error_response(args)
|
def error_response(args = {})
|
||||||
message = args.fetch(:message) { t('client_api.generic_error_message') }
|
message = args.fetch(:message) { t('client_api.generic_error_message') }
|
||||||
details = args.fetch(:details) { {} }
|
details = args.fetch(:details) { {} }
|
||||||
status = args.fetch(:status) { :unprocessable_entity }
|
status = args.fetch(:status) { :unprocessable_entity }
|
||||||
|
|
Loading…
Reference in a new issue