summaryrefslogtreecommitdiff
path: root/lib/htmloutputter.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-11 15:39:49 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-11 15:39:49 -0500
commit1d5296e596168f6ee8b18e9917e8d8aa62ac254c (patch)
tree17277fed1f9aef169f183b6a911d3646dbc52d47 /lib/htmloutputter.php
parentab37f84b5a2850e8f10b78a1a3781edb0981b7ca (diff)
change htmloutputter to use exception instead of common_user_error
Diffstat (limited to 'lib/htmloutputter.php')
-rw-r--r--lib/htmloutputter.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php
index 45e61d2fc..06603ac05 100644
--- a/lib/htmloutputter.php
+++ b/lib/htmloutputter.php
@@ -101,9 +101,8 @@ class HTMLOutputter extends XMLOutputter
$type = common_negotiate_type($cp, $sp);
if (!$type) {
- common_user_error(_('This page is not available in a '.
- 'media type you accept'), 406);
- exit(0);
+ throw new ClientException(_('This page is not available in a '.
+ 'media type you accept'), 406);
}
}