mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Change in error handling.
This commit is contained in:
parent
5a771ccc5f
commit
5bcafe1311
@ -449,6 +449,7 @@
|
||||
}).catch(error => {
|
||||
// give user errors things back.
|
||||
// something something render errors.
|
||||
|
||||
console.error('Error in transaction submission.');
|
||||
console.error(error);
|
||||
this.parseErrors(error.response.data);
|
||||
@ -651,10 +652,10 @@
|
||||
parseErrors: function (errors) {
|
||||
this.setDefaultErrors();
|
||||
this.error_message = "";
|
||||
if (errors.message.length > 0) {
|
||||
this.error_message = this.$t('firefly.errors_submission');
|
||||
if (typeof errors.errors === 'undefined') {
|
||||
this.error_message = errors.message;
|
||||
} else {
|
||||
this.error_message = '';
|
||||
this.error_message = this.$t('firefly.errors_submission');
|
||||
}
|
||||
let transactionIndex;
|
||||
let fieldName;
|
||||
|
Loading…
Reference in New Issue
Block a user