diff --git a/index.php b/index.php
index 426aa22..2181fb3 100644
--- a/index.php
+++ b/index.php
@@ -15,6 +15,11 @@
drupal_handle_request();
}
catch (Exception $e) {
- print 'If you have just changed code (for example deployed a new module or moved an existing one) read http://drupal.org/documentation/rebuild';
+ $message = 'If you have just changed code (for example deployed a new module or moved an existing one) read http://drupal.org/documentation/rebuild';
+ if (settings()->get('rebuild_access', FALSE)) {
+ $rebuild_path = $GLOBALS['base_url'] . '/rebuild.php';
+ $message .= " or run the rebuild script";
+ }
+ print $message;
throw $e;
}