Skip to content

Commit

Permalink
fix: edit error message
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Nov 21, 2024
1 parent 4833183 commit 84d478b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,7 @@ const validateSessionId = (rawSessionId) => {
const sessionId = String(rawSessionId).trim(); // Attempt conversion to string and trim whitespace
if (!sessionId) {
throw new InstrumentationError(

Check warning on line 2338 in src/v0/util/index.js

View check run for this annotation

Codecov / codecov/patch

src/v0/util/index.js#L2338

Added line #L2338 was not covered by tests
'[TransformSessionId] Invalid session ID: must be a non-empty string after conversion to string.',
'Invalid session ID: must be a non-empty string after conversion to string.',
);
}
return sessionId; // Return the validated and converted session ID
Expand Down

0 comments on commit 84d478b

Please sign in to comment.