Fixed auth returning 500 instead of 403
This commit is contained in:
parent
3f42d1ff5f
commit
a30201ebb1
2 changed files with 2 additions and 2 deletions
2
packages/cache/pubspec.yaml
vendored
2
packages/cache/pubspec.yaml
vendored
|
@ -1,6 +1,6 @@
|
|||
name: angel3_cache
|
||||
version: 4.0.0
|
||||
description: Support for server-side caching in Angel3 Framework
|
||||
description: Support server-side caching of reponse data from services.
|
||||
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/cache
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
|
|
@ -188,7 +188,7 @@ abstract class Driver<
|
|||
}
|
||||
throw AngelHttpException(e,
|
||||
stackTrace: st,
|
||||
statusCode: 500,
|
||||
statusCode: (e is AngelHttpException) ? e.statusCode : 500,
|
||||
message: e?.toString() ?? '500 Internal Server Error');
|
||||
}, test: (e) => e is AngelHttpException).catchError(
|
||||
(ee, StackTrace st) {
|
||||
|
|
Loading…
Reference in a new issue