Skip to content
Snippets Groups Projects
Commit 76097391 authored by Josef Moravec's avatar Josef Moravec Committed by Robert Lange
Browse files

Fix bug: incorrect return value.

parent 3938ce8f
No related merge requests found
...@@ -107,7 +107,7 @@ class AddUsingTemplateCommand extends AbstractCommand ...@@ -107,7 +107,7 @@ class AddUsingTemplateCommand extends AbstractCommand
foreach ($lookups as $domain => & $tokens) { foreach ($lookups as $domain => & $tokens) {
$sourceDir = $this->getLangDir($output, $domain, false); $sourceDir = $this->getLangDir($output, $domain, false);
if (!$sourceDir) { if (!$sourceDir) {
return $this->getFailureResponse(); return 1;
} }
$sourceCallback = function ($full) use ($domain, & $tokens) { $sourceCallback = function ($full) use ($domain, & $tokens) {
$strings = $this->reader->getTextDomain($full, false); $strings = $this->reader->getTextDomain($full, false);
......
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