There was an error while loading. Please reload this page.
1 parent 485d50e commit d12ebf3Copy full SHA for d12ebf3
1 file changed
dev-packages/test-utils/src/cli.ts
@@ -69,12 +69,11 @@ export function fetchTrace(traceId: string): TraceItem[] {
69
);
70
}
71
72
- // Exit code 23 means the trace has not landed yet. Log anything else, since a rejected request
73
- // and a trace that has not landed are otherwise indistinguishable.
74
- if (result.status !== 23) {
75
- // eslint-disable-next-line no-console
76
- console.log(`sentry trace view ${target} exited with ${result.status}: ${result.stderr}`);
+ const traceMissing = result.status === 23 && result.stderr.includes(`Trace '${traceId}' not found`);
+ if (traceMissing) {
+ return [];
77
+ throw new Error(`sentry trace view ${target} exited with ${result.status}: ${result.stderr}`);
78
79
return [];
80
0 commit comments