talis/persona-php-client

Refactor exception throwing

Opened this issue · 0 comments

When exceptions are thrown when making a curl request to Persona, we only ever return:

throw new \Exception("Could not retrieve OAuth response code");

Should we be returning the actual error instead so the consuming app/developer can see what the error is?