Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
BuzzTroll committed Jul 14, 2010
1 parent ce44924 commit cfe3887
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -562,9 +562,15 @@ public void uploadVM(
pr.println("\n\nDone.");
}
}
catch(Exception s3ex)
catch(S3ServiceException s3ex)
{
throw new ExecutionProblem(s3ex.toString());
String msg = s3ex.getS3ErrorMessage() + " cause: " + s3ex.getCause();
throw new ExecutionProblem(msg, s3ex);
}
catch(Exception ex1)
{
String msg = ex1.toString() + " cause: " + ex1.getCause();
throw new ExecutionProblem(msg, ex1);
}
}

Expand Down

0 comments on commit cfe3887

Please sign in to comment.