Raise an error

Added by iNTERFACEWARE

Use the error() function to raise an error and write it to the logs

Source Code
   -- raise an error
   error('Hello World I am an ERROR')
   
   -- The "level" param is very useful to make
   -- errors more visible when you are debugging
   
   -- raise error up one level at the calling function  
   error('Hello World I am an ERROR', 2)
   
   -- raise error up 2 levels
   error('Hello World I am an ERROR', 3)
   
   -- raise error at current level
   error('Hello World I am an ERROR', 1)
   -- equivalent to no level param specified
   error('Hello World I am an ERROR')
Description
Use the error() function to raise an error and write it to the logs