Skip to content

Commit

Permalink
Dev Small error message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 21, 2024
1 parent a020168 commit a2177db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/models/Survey.php
Expand Up @@ -348,7 +348,11 @@ public function getCurrentLanguageSettings()
} elseif (isset($this->languagesettings[$this->language])) {
return $this->languagesettings[$this->language];
} else {
throw new Exception('Survey language not found - looked for ' . App()->language . ' and ' . $this->language);
$errorString = 'Survey language not found - looked for ' . App()->language;
if ($this->language != App()->language) {
$errorString .= ' and ' . $this->language;
}
throw new Exception($errorString);
}
}

Expand Down

0 comments on commit a2177db

Please sign in to comment.