Commit 99261e07 authored by mmn's avatar mmn

Don't LOG_ERR missing paths (misspelling clients aren't errors)

parent 53339ff4
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
* @link http://status.net/ * @link http://status.net/
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { if (!defined('GNUSOCIAL')) { exit(1); }
exit(1);
}
/** /**
* URL Router * URL Router
...@@ -1098,11 +1096,9 @@ class Router ...@@ -1098,11 +1096,9 @@ class Router
try { try {
$match = $this->m->match($path); $match = $this->m->match($path);
} catch (Exception $e) { } catch (Exception $e) {
common_log(LOG_ERR, "Problem getting route for $path - " . common_debug('Problem getting route for '._ve($path).' - '._ve($e->getMessage()));
$e->getMessage());
// TRANS: Client error on action trying to visit a non-existing page. // TRANS: Client error on action trying to visit a non-existing page.
$cac = new ClientErrorAction(_('Page not found.'), 404); throw new ClientException(_('Page not found.'), 404);
$cac->showPage();
} }
return $match; return $match;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment