mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-08 14:28:57 +02:00
[Nostromo] Improve Exception workflow
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
namespace Mage\Task\BuiltIn\FS;
|
||||
|
||||
use Mage\Runtime\Exception\RuntimeException;
|
||||
use Mage\Task\Exception\ErrorException;
|
||||
use Mage\Task\AbstractTask;
|
||||
|
||||
/**
|
||||
@@ -26,7 +26,7 @@ abstract class AbstractFileTask extends AbstractTask
|
||||
|
||||
foreach ($mandatory as $parameter) {
|
||||
if (!array_key_exists($parameter, $this->options)) {
|
||||
throw new RuntimeException(sprintf('Parameter "%s" is not defined', $parameter));
|
||||
throw new ErrorException(sprintf('Parameter "%s" is not defined', $parameter));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user