Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 538 Bytes

02_hiding_errors.md

File metadata and controls

31 lines (22 loc) · 538 Bytes

Hiding Errors

You can hide the error renders in the Pashmak. For doing this, you only need to define HIDE_ERRORS. (read name defining system).

For example:

println $not_found

Error output:

VariableError: undefined variable "not_found":
  in <stdin>:1:
        println $not_found

But if you change your code to this:

# hide the errors
define('HIDE_ERRORS', true)

println $not_found

The above code has not output.

You only need to set HIDE_ERRORS to true