Skip to content

Commit 19e2d68

Browse files
committed
fix: trace-mode empty hint grammar for absolute date ranges
1 parent 285982c commit 19e2d68

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/commands/log/list.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,13 +461,15 @@ async function executeTraceSingleFetch(
461461
});
462462

463463
const periodLabel =
464-
timeRange.type === "relative" ? timeRange.period : "specified range";
464+
timeRange.type === "relative"
465+
? `in the last ${timeRange.period}`
466+
: "in the specified range";
465467

466468
if (logs.length === 0) {
467469
return {
468470
result: { logs: [], traceId, hasMore: false },
469471
hint:
470-
`No logs found for trace ${traceId} in the last ${periodLabel}.\n\n` +
472+
`No logs found for trace ${traceId} ${periodLabel}.\n\n` +
471473
"Try 'sentry trace logs' for more options (e.g., --period 30d).",
472474
};
473475
}

0 commit comments

Comments
 (0)