A free open source IT asset/license management system
Use better error message
Marcus Moore81bffccf0144
diff --git a/app/Livewire/Importer.php b/app/Livewire/Importer.phpindex f3a461d313..fe084d547e 100644--- a/app/Livewire/Importer.php+++ b/app/Livewire/Importer.php@@ -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;diff --git a/resources/lang/en-US/admin/hardware/message.php b/resources/lang/en-US/admin/hardware/message.phpindex 32698b1c07..a062e5c487 100644--- a/resources/lang/en-US/admin/hardware/message.php+++ b/resources/lang/en-US/admin/hardware/message.php@@ -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',],