Skip to content

Commit 0b4ca6e

Browse files
authored
Merge pull request #215 from labmlai/front-error-handle
show error status codes
2 parents 38695aa + 57ded33 commit 0b4ca6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/ui/src/components/user_messages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class UserMessages {
3838
networkError(error: NetworkError | Error, message: String = 'An unexpected network error occurred. Please try again later') {
3939
let description = ''
4040
if (error instanceof NetworkError) {
41-
description = error.errorDescription
41+
description = `(${error.statusCode})` + (error.errorDescription != null ? " " + error.errorDescription : "")
4242
} else if (error instanceof Error) {
4343
description = error.message
4444
}

0 commit comments

Comments
 (0)