From 76097391e1c1b37cacc195f22881fb9ece152c98 Mon Sep 17 00:00:00 2001 From: Josef Moravec <josef.moravec@gmail.com> Date: Tue, 23 Mar 2021 13:46:57 -0400 Subject: [PATCH] Fix bug: incorrect return value. --- .../VuFindConsole/Command/Language/AddUsingTemplateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFindConsole/src/VuFindConsole/Command/Language/AddUsingTemplateCommand.php b/module/VuFindConsole/src/VuFindConsole/Command/Language/AddUsingTemplateCommand.php index 8cd2ed8412e..d4edd7e49b0 100644 --- a/module/VuFindConsole/src/VuFindConsole/Command/Language/AddUsingTemplateCommand.php +++ b/module/VuFindConsole/src/VuFindConsole/Command/Language/AddUsingTemplateCommand.php @@ -107,7 +107,7 @@ class AddUsingTemplateCommand extends AbstractCommand foreach ($lookups as $domain => & $tokens) { $sourceDir = $this->getLangDir($output, $domain, false); if (!$sourceDir) { - return $this->getFailureResponse(); + return 1; } $sourceCallback = function ($full) use ($domain, & $tokens) { $strings = $this->reader->getTextDomain($full, false); -- GitLab