enhance wp_die() to include error level
-
Hello,
I suggest enhancement to wp_die() function.
Current Situation
wp_die() function has no parameter that would indicate the error severity e.g. WARNING (for user errors) or FATAL (for system error such as failed connection to email server/db). There is no easy way to distinguish user errors from severe errors.Proposed Enhancement
Caller of wp_die() function should indicate the type of error (warning/fatal etc.) that occurred. Then it would be possible to handle fatal errors differently e.g. by sending email to administrator or at least logging the error.
- The topic ‘enhance wp_die() to include error level’ is closed to new replies.