Commit 510fad4f authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

fix bug: Wrong error on Auth WrongCredentials

parent d7ce42b6
......@@ -4,7 +4,7 @@ module Dspace
resources do
default_handler(400) { raise InvalidTokenError, 'Invalid access token.' }
default_handler(403) { raise InvalidCredentialsError, 'Wrong Dspace credentials.' }
default_handler(401,403) { raise InvalidCredentialsError, 'Wrong Dspace credentials.' }
default_handler { |response| raise StandardError, "#{response.inspect}" }
action :login, 'POST /rest/login' do
......
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