mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-31 16:37:27 -08:00
Better error messaging for bad fields
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
74ca561ab0
commit
2f943bc052
|
@ -109,7 +109,7 @@ class AssetModelImporter extends ItemImporter
|
|||
|
||||
} else {
|
||||
$this->log($assetmodel->getErrors()->first());
|
||||
$this->addErrorToBag($assetmodel, '', $assetmodel->getErrors()->first());
|
||||
$this->addErrorToBag($assetmodel, $assetmodel->getErrors()->keys()[0], $assetmodel->getErrors()->first());
|
||||
return $assetmodel->getErrors();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue