summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/general/errors.rst
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2011-10-06 00:26:43 +0200
committerDerek Jones <derek.jones@ellislab.com>2011-10-06 00:26:43 +0200
commit9713cce9876fce5cb38c3ee24193ae3455c81755 (patch)
tree5c21400b49e65173fcc3ec623010bf13f0bf37b8 /user_guide_src/source/general/errors.rst
parenta1360ef24fff8b57353db32ad6045969af28e5d5 (diff)
fixing code spacing in Core, Library, Drivers, and Errors general docs
Diffstat (limited to 'user_guide_src/source/general/errors.rst')
-rw-r--r--user_guide_src/source/general/errors.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/user_guide_src/source/general/errors.rst b/user_guide_src/source/general/errors.rst
index 0764e9db8..91b59140f 100644
--- a/user_guide_src/source/general/errors.rst
+++ b/user_guide_src/source/general/errors.rst
@@ -54,7 +54,16 @@ one of three "levels" in the first parameter, indicating what type of
message it is (debug, error, info), with the message itself in the
second parameter. Example::
- if ($some_var == "") {     log_message('error', 'Some variable did not contain a value.'); } else {     log_message('debug', 'Some variable was correctly set'); } log_message('info', 'The purpose of some variable is to provide some value.');
+ if ($some_var == "")
+ {
+ log_message('error', 'Some variable did not contain a value.');
+ }
+ else
+ {
+ log_message('debug', 'Some variable was correctly set');
+ }
+
+ log_message('info', 'The purpose of some variable is to provide some value.');
There are three message types: