Fix error message display

This commit is contained in:
Bubka 2020-11-04 22:42:54 +01:00
parent a8e5535d6b
commit e2b52526dd

View File

@ -19,7 +19,7 @@
<p>{{ $t('errors.error_occured') }}</p>
<p v-if="error" class="has-text-grey-lighter">{{ error.message }}</p>
<p><router-link :to="{ name: 'accounts' }" class="is-text">{{ $t('errors.refresh') }}</router-link></p>
<p v-if="debugMode == 'development' && error">
<p v-if="debugMode == 'development' && error.debug">
<br>
{{ error.debug }}
</p>
@ -52,14 +52,12 @@
else
{
if(this.err.data) {
console.log(this.err.data)
console.log(this.err.data)
return this.err.data
}
else
{
return {
statusText: this.err
}
return { 'message' : this.err }
}
}