diff --git a/src/ApiRoute.php b/src/ApiRoute.php index 92e14d4..a1ffaa0 100755 --- a/src/ApiRoute.php +++ b/src/ApiRoute.php @@ -113,7 +113,7 @@ public function resolveMethod(Nette\Http\IRequest $request): string { if (!in_array($request->getMethod(), $this->getMethods(), true)) { throw new ClientException( - 'Allowed methods: ' . implode(', ', $this->getMethods()) . '.', + 'Allowed methods: ' . implode(', ', $this->getMethods()) . '. Used method: ' . $request->getMethod() . '.', Nette\Http\IResponse::S405_MethodNotAllowed ); }