Skip to content

Commit

Permalink
Merge branch 'release/1.0.1' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Sep 22, 2018
2 parents 3d8776b + 8e1db51 commit 2a4f931
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/helpers/Manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,18 @@ public static function getModule(array $config, string $moduleName, string $type
// Try again, but not with home module replacement
$isHot = false;
} else {
// We couldn't find a manifest; throw an error
throw new NotFoundHttpException(
Craft::t(
'twigpack',
'Manifest file not found at: {manifestPath}',
['manifestPath' => $manifestPath]
)
);
if ($devMode) {
// We couldn't find a manifest; throw an error
throw new NotFoundHttpException(
Craft::t(
'twigpack',
'Manifest file not found at: {manifestPath}',
['manifestPath' => $manifestPath]
)
);
}

return null;
}
}
}
Expand Down

0 comments on commit 2a4f931

Please sign in to comment.