diff options
author | Derek Jones <derek.jones@ellislab.com> | 2011-10-06 00:26:43 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2011-10-06 00:26:43 +0200 |
commit | 9713cce9876fce5cb38c3ee24193ae3455c81755 (patch) | |
tree | 5c21400b49e65173fcc3ec623010bf13f0bf37b8 /user_guide_src/source/general/errors.rst | |
parent | a1360ef24fff8b57353db32ad6045969af28e5d5 (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.rst | 11 |
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: |