fix: The message field in UnknownRemoteException is typed as String? and the condition will always be false.

This commit is contained in:
dab246
2026-03-09 11:12:55 +07:00
committed by Dat H. Pham
parent 572bf6ba81
commit b7594a4adb
6 changed files with 12 additions and 5 deletions
@@ -97,7 +97,7 @@ class RemoteExceptionThrower extends ExceptionThrower {
} else if (underlyingError is OAuthAuthorizationError) {
throw underlyingError;
} else if (underlyingError != null) {
throw UnknownRemoteException(message: underlyingError.toString());
throw UnknownRemoteException(error: underlyingError);
} else {
throw const UnknownRemoteException();
}