fix(auth): exception returns msg as message
This commit is contained in:
parent
08f789725b
commit
d9d0625c67
@ -23,6 +23,9 @@ abstract class AuthenticationFailureInterface extends AppException
|
|||||||
String code;
|
String code;
|
||||||
String msg;
|
String msg;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get message => msg;
|
||||||
|
|
||||||
AuthenticationFailureInterface(this.code, this.msg);
|
AuthenticationFailureInterface(this.code, this.msg);
|
||||||
AuthenticationFailureInterface.fromCode(this.code)
|
AuthenticationFailureInterface.fromCode(this.code)
|
||||||
: msg = 'An unknown error occurred.';
|
: msg = 'An unknown error occurred.';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user