Skip to content
Permalink
Browse files
More information about service failure, URL added
  • Loading branch information
dspavlov committed May 7, 2019
1 parent e47cef3 commit 180bb2e43b3beffa2ba167f4bf77509114a7deb0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -190,7 +190,7 @@ private static InputStream getInputStream(HttpURLConnection con) throws IOExcept
throw new FileNotFoundException("Service " + con.getURL() + " returned not found error."
+ readIsToString(con.getErrorStream()));

throw new IllegalStateException("Invalid Response Code : " + resCode + ":\n"
throw new IllegalStateException("Service " + con.getURL() + " returned Invalid Response Code : " + resCode + ":\n"
+ readIsToString(con.getErrorStream()));
}

0 comments on commit 180bb2e

Please sign in to comment.