Skip to content

Commit 90d030e

Browse files
committed
use correct object
1 parent dd2a32b commit 90d030e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dart/lib/src/sentry_exception_factory.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ class SentryExceptionFactory {
5757
}
5858
}
5959

60-
final exceptionString = exception.toString();
60+
final throwableString = throwable.toString();
6161
final stackTraceString = stackTrace.toString();
62-
final value = exceptionString.replaceAll(stackTraceString, '').trim();
62+
final value = throwableString.replaceAll(stackTraceString, '').trim();
6363

6464
// if --obfuscate feature is enabled, 'type' won't be human readable.
6565
// https://flutter.dev/docs/deployment/obfuscate#caveat

0 commit comments

Comments
 (0)