Clarify config file not found exception message
Signed-off-by: Jim Madge <jmadge@turing.ac.uk>
This commit is contained in:
@@ -84,7 +84,7 @@ class BoardImportCommandService extends BoardImportService {
|
|||||||
|
|
||||||
if (is_string($config)) {
|
if (is_string($config)) {
|
||||||
if (!is_file($config)) {
|
if (!is_file($config)) {
|
||||||
throw new NotFoundException('It\'s not a valid config file.');
|
throw new NotFoundException('Config file not found.');
|
||||||
}
|
}
|
||||||
$config = json_decode(file_get_contents($config));
|
$config = json_decode(file_get_contents($config));
|
||||||
if (!$config instanceof \stdClass) {
|
if (!$config instanceof \stdClass) {
|
||||||
|
|||||||
Reference in New Issue
Block a user