Skip to content

Commit c0b41c6

Browse files
committed
log [nfc]: Pull out _reportErrorToConsole
Signed-off-by: Zixuan James Li <[email protected]>
1 parent 4937f6f commit c0b41c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/log.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ typedef ReportErrorCancellablyCallback = void Function(String? message, {String?
5454
ReportErrorCancellablyCallback reportErrorToUserBriefly = defaultReportErrorToUserBriefly;
5555

5656
void defaultReportErrorToUserBriefly(String? message, {String? details}) {
57-
// Error dismissing is a no-op to the default handler.
57+
_reportErrorToConsole(message, details);
58+
}
59+
60+
void _reportErrorToConsole(String? message, String? details) {
61+
// Error dismissing is a no-op for the console.
5862
if (message == null) return;
5963
// If this callback is still in place, then the app's widget tree
6064
// hasn't mounted yet even as far as the [Navigator].

0 commit comments

Comments
 (0)