File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
pkgs/dart_mcp_server/lib/src/mixins Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -174,15 +174,14 @@ base mixin FlutterLauncherSupport
174
174
if (! completer.isCompleted) {
175
175
final logs = _runningApps[process.pid]? .logs ?? [];
176
176
// Only output the last 500 lines of logs.
177
- final startPos = math.max (0 , logs.length - 500 );
178
- final logOutput = logs.sublist (startPos).join ('\n ' );
179
- final truncateMessage = startPos > 0
180
- ? '[showing the last 500 lines of a log with '
181
- '${logs .length } lines.]...\n '
182
- : '' ;
177
+ final startLine = math.max (0 , logs.length - 500 );
178
+ final logOutput = [
179
+ if (startLine > 0 ) '[skipping $startLine log lines]...' ,
180
+ ...logs.sublist (startLine),
181
+ ];
183
182
completer.completeError (
184
183
'Flutter application exited with code $exitCode before the DTD '
185
- 'URI was found, with log output:\n $truncateMessage $ logOutput ' ,
184
+ 'URI was found, with log output:\n ${ logOutput . join ( ' \n ' )} ' ,
186
185
);
187
186
}
188
187
_runningApps.remove (process.pid);
You can’t perform that action at this time.
0 commit comments