Skip to content

Commit c85ecc8

Browse files
authored
chore: clarify comment (#114)
1 parent 5a83d63 commit c85ecc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/scout-agent/lib/compaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function isOutOfContextError(error: unknown): boolean {
6464
textToTest = JSON.stringify(apiError);
6565
} catch {
6666
// note: util.inspect returns different values in Bun and Node.js
67-
// in Node.js it includes the error message, in Bun it doesn't
67+
// in Node.js it includes the error message, in Bun it ~sometimes~ doesn't.
6868
// that's why it's the final fallback
6969
textToTest = util.inspect(apiError, { depth: null });
7070
}

0 commit comments

Comments
 (0)