We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0c86d commit 54c8df4Copy full SHA for 54c8df4
lib/src/printers/pretty_printer.dart
@@ -133,7 +133,7 @@ class PrettyPrinter extends LogPrinter {
133
134
String? formatStackTrace(StackTrace? stackTrace, int methodCount) {
135
var lines = stackTrace.toString().split('\n');
136
- if (stackTraceBeginIndex > 0) {
+ if (stackTraceBeginIndex > 0 && stackTraceBeginIndex < lines.length - 1) {
137
lines = lines.sublist(stackTraceBeginIndex);
138
}
139
var formatted = <String>[];
0 commit comments