Skip to content

Commit

Permalink
improve error messages
Browse files Browse the repository at this point in the history
Signed-off-by: F-Node-Karlsruhe <christian.fries@eecc.de>
  • Loading branch information
F-Node-Karlsruhe committed Aug 14, 2023
1 parent c5159f5 commit 7d3285f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/routes/verify/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class VerifyRoutes {
return res.status(StatusCodes.OK).json(results);

} catch (error) {
return res.status(StatusCodes.BAD_REQUEST).send('Something went wrong!\n' + error);
return res.status(StatusCodes.BAD_REQUEST).send('Something went wrong verifying!\n' + error);
}

}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export default {
return
} catch (error) {
this.toast.error(`Something went wrong verifying the credentials!\n${error}`);
this.toast.error(error.response ? error.response.data : `Something went wrong verifying the credentials!\n${error}`);
}
}
Expand Down

0 comments on commit 7d3285f

Please sign in to comment.