Author: dennisl
Date: Sat Apr 17 13:02:36 2010
New Revision: 935171
URL: http://svn.apache.org/viewvc?rev=935171&view=rev
Log:
Include the name of the file in the exception message if the public or secret
keyring file does not exist or is not readable.
Modified:
commons/sandbox/openpgp/trunk/src/main/java/org/apache/commons/openpgp/ant/OpenPgpSignerTask.java
Modified:
commons/sandbox/openpgp/trunk/src/main/java/org/apache/commons/openpgp/ant/OpenPgpSignerTask.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/openpgp/trunk/src/main/java/org/apache/commons/openpgp/ant/OpenPgpSignerTask.java?rev=935171&r1=935170&r2=935171&view=diff
==============================================================================
---
commons/sandbox/openpgp/trunk/src/main/java/org/apache/commons/openpgp/ant/OpenPgpSignerTask.java
(original)
+++
commons/sandbox/openpgp/trunk/src/main/java/org/apache/commons/openpgp/ant/OpenPgpSignerTask.java
Sat Apr 17 13:02:36 2010
@@ -125,10 +125,10 @@ public class OpenPgpSignerTask extends T
throw new BuildException("supply the attribute tosign or one
nested fileset");
}
if (!secring.exists() || !secring.canRead()) {
- throw new BuildException("secret keyring file does not exist or
is not readable");
+ throw new BuildException("secret keyring file '" +
secring.getAbsolutePath() + "' does not exist or is not readable");
}
if (!pubring.exists() || !pubring.canRead()) {
- throw new BuildException("public keyring file does not exist or
is not readable");
+ throw new BuildException("public keyring file '" +
pubring.getAbsolutePath() + "' does not exist or is not readable");
}
FileInputStream secStream;
FileInputStream pubStream;