Skip to content

Commit d193e66

Browse files
committed
fix: indent continuation line in network error detail for ApiError.format()
ApiError.format() only indents the first line of detail with '\n '. Continuation lines need explicit indentation to maintain the aligned error layout.
1 parent 2c8e882 commit d193e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api/infrastructure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function throwApiError(
4747
throw new ApiError(
4848
`${context}: Network error`,
4949
0,
50-
`Unable to reach Sentry API. Cause: ${cause}\n\nCheck your internet connection and try again.`
50+
`Unable to reach Sentry API. Cause: ${cause}\n\n Check your internet connection and try again.`
5151
);
5252
}
5353

0 commit comments

Comments
 (0)