change htmloutputter to use exception instead of common_user_error

This commit is contained in:
Evan Prodromou 2009-02-11 15:39:49 -05:00
parent ab37f84b5a
commit 1d5296e596

View File

@ -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);
}
}