Use better error message

This commit is contained in:
Marcus Moore 2024-07-17 16:28:26 -07:00
parent cfca1514c0
commit 81bffccf01
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -529,8 +529,7 @@ class Importer extends Component
// for example having an import open in two tabs, deleting it, and then changing
// the import type in the other tab. The error message below wouldn't display in that case.
if (!$import) {
// @todo: improve error message
$this->message = trans('admin/hardware/message.import.file_delete_error');
$this->message = trans('admin/hardware/message.import.file_already_deleted');
$this->message_type = 'danger';
return;

View file

@ -58,6 +58,7 @@ return [
'file_delete_success' => 'Your file has been been successfully deleted',
'file_delete_error' => 'The file was unable to be deleted',
'file_missing' => 'The file selected is missing',
'file_already_deleted' => 'The file selected was already deleted',
'header_row_has_malformed_characters' => 'One or more attributes in the header row contain malformed UTF-8 characters',
'content_row_has_malformed_characters' => 'One or more attributes in the first row of content contain malformed UTF-8 characters',
],