Skip to content

Commit 9a6a31f

Browse files
authored
fix: Internal error message on login with missing credential (#2370)
1 parent 3c8b67e commit 9a6a31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/login/Login.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class Login extends React.Component {
2424
this.errors = json.text
2525
otpLength = json.otpLength;
2626
} catch (e) {
27-
this.errors = `could not pass error json: ${e}`;
27+
this.errors = this.errors ?? `Error: ${JSON.stringify(e)}`;
2828
}
2929
}
3030

0 commit comments

Comments
 (0)