Skip to content

Commit a6dca98

Browse files
committed
Do not expose internal exception.
1 parent 382a7c7 commit a6dca98

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/pub_worker/lib/src/analyze.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,10 @@ Future<void> _analyzePackage(
161161
.transform(LineSplitter())
162162
.forEach(log.writeln),
163163
pana.exitOrTimeout(_panaTimeout, () {
164-
log.writeln('TIMEOUT: pana sending SIGTERM/SIGKILL');
164+
log.writeln('TIMEOUT: sending SIGTERM/SIGKILL to pana.');
165165
}),
166166
]).catchError((e, st) {
167-
log.writeln('Error waiting for pana process: $e');
168-
log.writeln(st);
167+
log.writeln('TIMEOUT: sending SIGKILL to pana.');
169168
// kill the process if not already killed
170169
try {
171170
pana.kill(ProcessSignal.sigkill);

0 commit comments

Comments
 (0)