diff --git a/helpers/PrerequisiteChecker.php b/helpers/PrerequisiteChecker.php new file mode 100644 index 00000000..5730081a --- /dev/null +++ b/helpers/PrerequisiteChecker.php @@ -0,0 +1,50 @@ + \ No newline at end of file diff --git a/public/index.php b/public/index.php index 64e013e1..f65a1f7a 100644 --- a/public/index.php +++ b/public/index.php @@ -1,3 +1,13 @@ checkRequirements(); +} catch (ERequirementNotMet $e) { + die("Unable to run grocy: " . $e->getMessage()); +} + require_once __DIR__ . '/../app.php'; + +?> \ No newline at end of file