fix(auth): exception returns msg as message

This commit is contained in:
2022-11-11 18:47:16 -05:00
parent 08f789725b
commit d9d0625c67
@@ -23,6 +23,9 @@ abstract class AuthenticationFailureInterface extends AppException
String code;
String msg;
@override
String get message => msg;
AuthenticationFailureInterface(this.code, this.msg);
AuthenticationFailureInterface.fromCode(this.code)
: msg = 'An unknown error occurred.';