lib/finapps/rest/sessions.rb in finapps-5.0.7 vs lib/finapps/rest/sessions.rb in finapps-5.0.8

- old
+ new

@@ -13,15 +13,17 @@ path ||= CONSUMER_LOGIN begin super params, path rescue FinAppsCore::ApiUnauthenticatedError - return [ - nil, + return( [ - "Invalid #{path == CONSUMER_LOGIN ? 'Consumer' : 'Operator'} Identifier or Credentials" + nil, + [ + "Invalid #{path == CONSUMER_LOGIN ? 'Consumer' : 'Operator'} Identifier or Credentials" + ] ] - ] + ) end end def destroy create nil, LOGOUT