Skip to content

Commit 6ff8982

Browse files
authored
fix: Handle missing message with valid string. (#450)
1 parent 0c83afd commit 6ff8982

File tree

1 file changed

+1
-1
lines changed
  • packages/shared/common/src/utils

1 file changed

+1
-1
lines changed

packages/shared/common/src/utils/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function httpErrorMessage(
4949
if (err.status) {
5050
desc = `error ${err.status}${err.status === 401 ? ' (invalid SDK key)' : ''}`;
5151
} else {
52-
desc = `I/O error (${err.message || err})`;
52+
desc = `I/O error (${err.message || 'unknown error'})`;
5353
}
5454
const action = retryMessage ?? 'giving up permanently';
5555
return `Received ${desc} for ${context} - ${action}`;

0 commit comments

Comments
 (0)