From d9d0625c67aa089e63fb0936edfd182245ae34db Mon Sep 17 00:00:00 2001 From: Hugo Pointcheval Date: Fri, 11 Nov 2022 18:47:16 -0500 Subject: [PATCH] fix(auth): exception returns msg as message --- .../lib/src/core/exceptions/exceptions.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/wyatt_authentication_bloc/lib/src/core/exceptions/exceptions.dart b/packages/wyatt_authentication_bloc/lib/src/core/exceptions/exceptions.dart index 5ef49c83..dbe4b429 100644 --- a/packages/wyatt_authentication_bloc/lib/src/core/exceptions/exceptions.dart +++ b/packages/wyatt_authentication_bloc/lib/src/core/exceptions/exceptions.dart @@ -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.';