Fix various import bugs.

This commit is contained in:
James Cole
2017-06-24 08:37:09 +02:00
parent da3a56c144
commit 8e3ba7caf2
8 changed files with 25 additions and 22 deletions

View File

@@ -81,11 +81,8 @@ class Import extends Command
$routine->run();
/** @var MessageBag $error */
foreach($routine->errors as $index => $error) {
if($error->count() > 0) {
$message = join(', ',$error->all());
$this->error(sprintf('Error importing line #%d: %s', $index, $message));
}
foreach ($routine->errors as $index => $error) {
$this->error(sprintf('Error importing line #%d: %s', $index, $error));
}
// display result to user: