Show the name of the item with errors in the table.

This commit is contained in:
Daniel Meltzer 2016-06-22 17:07:55 -04:00
parent fdd17a2088
commit 25b916afeb

View file

@ -340,7 +340,7 @@ class ObjectImportCommand extends Command
$this->log('Asset Model ' . $asset_model_name . ' with model number ' . $asset_modelno . ' was created');
return $asset_model;
} else {
$this->jsonError('Asset Model', $asset_model->getErrors());
$this->jsonError('Asset Model ' . $asset_model_name, $asset_model->getErrors());
return $asset_model;
}
} else {
@ -387,7 +387,7 @@ class ObjectImportCommand extends Command
$this->log('Category ' . $asset_category . ' was created');
return $category;
} else {
$this->jsonError('Category', $category->getErrors());
$this->jsonError('Category '. $asset_category, $category->getErrors());
return $category;
}
} else {
@ -462,7 +462,7 @@ class ObjectImportCommand extends Command
$this->log('Status ' . $asset_statuslabel_name . ' was created');
return $status;
} else {
$this->jsonError('Status', $status->getErrors());
$this->jsonError('Status '. $asset_statuslabel_name, $status->getErrors());
return $status;
}
} else {
@ -511,7 +511,7 @@ class ObjectImportCommand extends Command
$this->log('Manufacturer ' . $manufacturer->name . ' was created');
return $manufacturer;
} else {
$this->jsonError('Manufacturer', $manufacturer->getErrors());
$this->jsonError('Manufacturer '. $manufacturer->name, $manufacturer->getErrors());
return $manufacturer;
}