gabesullice / jwt

https://www.drupal.org/project/jwt
18 stars 12 forks source link

Handling DomainException #15

Closed AndreasDeRijcke closed 6 years ago

AndreasDeRijcke commented 6 years ago

When the token has been fiddled with, the error is caught and passed on as a general exception with "Internal Server Error" message. Catching the error as DomainException and passing on the original error message seems more useful to me.

gabesullice commented 6 years ago

Sounds reasonable. Thanks!

AndreasDeRijcke commented 6 years ago

Great!