From ecc97a17608964d7507c0a7fcacaff7d6a6be5f4 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sun, 12 Nov 2017 16:46:58 +0100 Subject: [PATCH] Fix argument error --- src/main/php/xp/web/WebRunner.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/xp/web/WebRunner.class.php b/src/main/php/xp/web/WebRunner.class.php index c80d64fa..5e13c8a9 100755 --- a/src/main/php/xp/web/WebRunner.class.php +++ b/src/main/php/xp/web/WebRunner.class.php @@ -78,7 +78,7 @@ public static function main($args) { $application->service($request, $response); self::log($request, $response); } catch (Error $e) { - self::error($request, $response, $e); + self::error($request, $response, $e, $args[2]); } catch (\Throwable $e) { // PHP7 self::error($request, $response, new InternalServerError($e), $args[2]); } catch (\Exception $e) { // PHP5