add error for theme editor

pull/688/head
hunterlong 2020-06-22 00:21:26 -07:00
parent 04a04ad715
commit 1044337ec6
1 changed files with 7 additions and 2 deletions

View File

@ -107,7 +107,12 @@
},
async createAssets() {
this.pending = true
const resp = await Api.theme_generate(true)
let resp
try {
resp = await Api.theme_generate(true)
} catch(e) {
this.error = e.response.data.error
}
this.pending = false
await this.fetchTheme()
},