From b707007e7daafb0ff7ddf89459ef706c08e7edbf Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 1 Feb 2017 17:51:34 -0700 Subject: [PATCH] Added code to error output --- system/src/Grav/Common/GPM/Response.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/GPM/Response.php b/system/src/Grav/Common/GPM/Response.php index 80ecac202..c13d1ae4b 100644 --- a/system/src/Grav/Common/GPM/Response.php +++ b/system/src/Grav/Common/GPM/Response.php @@ -291,7 +291,7 @@ class Response case '401': throw new \RuntimeException("Invalid LICENSE"); default: - throw new \RuntimeException("Error while trying to download '$uri'\n"); + throw new \RuntimeException("Error while trying to download (code: $code): $uri \n"); } } @@ -327,7 +327,7 @@ class Response case '401': throw new \RuntimeException("Invalid LICENSE"); default: - throw new \RuntimeException("Error while trying to download '$uri'\nMessage: $error_message"); + throw new \RuntimeException("Error while trying to download (code: $code): $uri \nMessage: $error_message"); } }