Fix an error in error_handler making debug a bit harder