Skip to content

Commit b034979

Browse files
committed
feat: improve error message
1 parent 87314d8 commit b034979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Router/AutoRouterImproved.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function getRoute(string $uri): array
217217
strtolower($baseControllerName) === strtolower($this->defaultController)
218218
) {
219219
throw new PageNotFoundException(
220-
'Cannot access the default controller "' . $baseControllerName . '" with the controller name URI path.'
220+
'Cannot access the default controller "' . $this->controller . '" with the controller name URI path.'
221221
);
222222
}
223223
} elseif ($this->searchLastDefaultController($segments)) {

0 commit comments

Comments
 (0)