Skip to content

Commit

Permalink
fix: return login token error to studio (#12726)
Browse files Browse the repository at this point in the history
  • Loading branch information
petercwk committed Jun 26, 2023
1 parent 6048307 commit 8e8f4a2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ export class AdminLoginServer {
delete req.body;
res.sendStatus(200);
} catch (err) {
res.sendStatus(500);
res.sendStatus(500).send({
errorName: 'AmplifyStudioLoginError',
errorMessage: `Failed to receive expected authentication tokens. Error: ${err}`,
});
throw new AmplifyError(
'AmplifyStudioLoginError',
{
Expand Down

0 comments on commit 8e8f4a2

Please sign in to comment.