This commit is contained in:
2020-09-09 12:01:20 +08:00
parent 30b7f7cfc9
commit a362d93b6d
2 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ class Node extends Application
public function dispatch()
{
if (empty($this->callback)) {
return JSON::to(404, 'Page not found.');
return JSON::to(404, $this->_error ?? 'Page not found.');
}
return call_user_func($this->callback, \request());
}