fix(tw): Reloaded tasks into object array for refresh

- chore(tw): Wrapped import function in try catch and logged error
This commit is contained in:
Aerex
2020-06-02 21:16:18 -05:00
parent 2f87752f6e
commit 00d0ea624f
2 changed files with 28 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ class Console extends AbstractConsole {
$stdin = array_merge($stdin, $this->defaultArgs, $args);
if (isset($input)) {
$stdin[] = $this->convertToString($input);
$input = $this->convertToString($input);
}
$process = new Process(implode(' ', $stdin), $input, $envs);
$process->inheritEnvironmentVariables();
@@ -32,7 +32,6 @@ class Console extends AbstractConsole {
$process->mustRun();
return $process->getOutput();
} catch (ProcessFailedException $error) {
echo $error->getMessage();
throw $error;
}
}