summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--user_guide_src/source/general/errors.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/user_guide_src/source/general/errors.rst b/user_guide_src/source/general/errors.rst
index 721c78ca7..112dd83e1 100644
--- a/user_guide_src/source/general/errors.rst
+++ b/user_guide_src/source/general/errors.rst
@@ -37,9 +37,10 @@ The following functions let you generate errors:
:rtype: void
This function will display the error message supplied to it using the
-following error template::
+error template appropriate to your execution::
- application/views/errors/error_general.php
+ application/views/errors/html/error_general.php or
+ application/views/errors/cli/error_general.php
The optional parameter ``$status_code`` determines what HTTP status
code should be sent with the error. If ``$status_code`` is less than 100,
@@ -56,9 +57,10 @@ status code will be set to ``EXIT_ERROR``. You can check in
:rtype: void
This function will display the 404 error message supplied to it using
-the following error template::
+the error template appropriate to your execution::
- application/views/errors/error_404.php
+ application/views/errors/html/error_404.php or
+ application/views/errors/cli/error_404.php
The function expects the string passed to it to be the file path to the
page that isn't found. The exit status code will be set to ``EXIT_UNKNOWN_FILE``.