Added code to error output

This commit is contained in:
Andy Miller
2017-02-01 17:51:34 -07:00
parent a4c5d570ae
commit b707007e7d

View File

@@ -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");
}
}