Skip to content

Commit 54fbb48

Browse files
author
Jeroen van Leusden
committed
[WD2-282] Use CLI exit codes
1 parent e148434 commit 54fbb48

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Model/ImportProfile.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ public function __construct(
6161

6262
/**
6363
* Run the actual import
64-
* @return void
64+
*
65+
* @return bool
6566
*/
6667
public function run()
6768
{
@@ -86,8 +87,12 @@ public function run()
8687
]));
8788

8889
$this->consoleOutput->writeln("<error>$errors</error>");
90+
91+
return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
8992
} catch (\Exception $e) {
9093
$this->consoleOutput->writeln($e->getMessage());
94+
95+
return \Magento\Framework\Console\Cli::RETURN_FAILURE;
9196
}
9297
}
9398

0 commit comments

Comments
 (0)