Skip to content

Commit

Permalink
Fix logging error
Browse files Browse the repository at this point in the history
My bad
  • Loading branch information
baka-kaba committed Jun 29, 2015
1 parent b5963cd commit a74f931
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -300,8 +300,11 @@ protected VolleyError parseNetworkError(VolleyError volleyError) {
if (volleyError == null) {
errorMessage += "(null VolleyError)";
} else {
Log.w(TAG, volleyError.getMessage());
errorMessage += volleyError.getCause().getMessage();
Log.w(TAG, ""+volleyError);
if (volleyError.getCause() != null) {
String causeMessage = volleyError.getCause().getMessage();
errorMessage += (causeMessage == null) ? "unknown" : causeMessage;
}
if (volleyError.networkResponse != null) {
errorMessage += "\nStatus code: " + volleyError.networkResponse.statusCode;
}
Expand Down

0 comments on commit a74f931

Please sign in to comment.