diff options
-rw-r--r-- | Bugzilla.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 12ae42bba..324b3cc14 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -357,7 +357,7 @@ sub error_mode { $class->request_cache->{error_mode} = $newval; } return $class->request_cache->{error_mode} - || Bugzilla::Constants::ERROR_MODE_WEBPAGE; + || (i_am_cgi() ? ERROR_MODE_WEBPAGE : ERROR_MODE_DIE); } sub usage_mode { |