diff --git a/ayanova/src/views/adm-license.vue b/ayanova/src/views/adm-license.vue index e1d4941d..ad850111 100644 --- a/ayanova/src/views/adm-license.vue +++ b/ayanova/src/views/adm-license.vue @@ -285,10 +285,16 @@ export default { try { //call fetch key on server let r = await window.$gz.api.upsertEx("license"); + //r should just be a string response unless there is an error in which case it's an object if (r.error) { throw r; } - window.$gz.eventBus.$emit("notify-info", r.data); + + if (r.startsWith("E1")) { + throw r; + } + //this should be the only place hit if everything goes well and key was fetched + window.$gz.eventBus.$emit("notify-success", r); } catch (error) { window.$gz.errorHandler.handleFormError(error, vm); }