fix(auth): exception returns msg as message

This commit is contained in:
Hugo Pointcheval 2022-11-11 18:47:16 -05:00
parent 08f789725b
commit d9d0625c67
Signed by: hugo
GPG Key ID: A9E8E9615379254F

View File

@ -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.';