error handling

pull/32/head
Niko PLP 4 months ago
parent 19e237b465
commit b25be98d04
  1. 3
      ng-app/src/store.ts

@ -44,7 +44,8 @@ init({
}); });
export const display_error = (error: string) => { export const display_error = (error: string) => {
// Check, if error tranlsation does not exist console.log(error);
// TODO: Check, if error tranlsation does not exist
const parts = error.split(":"); const parts = error.split(":");
let res = get(format)("errors." + parts[0]); let res = get(format)("errors." + parts[0]);
if (parts[1]) { if (parts[1]) {

Loading…
Cancel
Save