Skip to content

Commit

Permalink
Fix argument error
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Nov 12, 2017
1 parent 7994088 commit ecc97a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/xp/web/WebRunner.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecc97a1

Please sign in to comment.