🚑 fix(hooks) Avoid returning twice the command output on error

issue #6068
parent 20978899
......@@ -1561,8 +1561,7 @@ class simplePlugin implements SimpleTab
$error = $this->callHook('CHECK', ['nbCheckErrors' => count($messages)], $returnOutput);
if (!empty($error)) {
$messages = array_merge($messages, $error);
}
if (!empty($returnOutput)) {
} elseif (!empty($returnOutput)) {
$messages[] = join("\n", $returnOutput);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment