error handling

pull/37/head
Niko PLP 4 months ago
parent 50153b2018
commit 81167ed5f3
  1. 3
      ng-app/src/store.ts

@ -44,7 +44,8 @@ init({
});
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(":");
let res = get(format)("errors." + parts[0]);
if (parts[1]) {

Loading…
Cancel
Save