mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-28 01:08:12 -07:00
Cleaned up sign exception
This commit is contained in:
parent
76cba6ed7a
commit
1ab53f5bad
2 changed files with 2 additions and 6 deletions
|
@ -348,12 +348,12 @@ public class PublishOperation extends AbstractOperation<PublishOperation> {
|
||||||
try {
|
try {
|
||||||
process.waitFor();
|
process.waitFor();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw new SignException(file, e);
|
throw new SignException(file, new InterruptedException(e.getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.exitValue() != 0) {
|
if (process.exitValue() != 0) {
|
||||||
var error = FileUtils.readString(process.getErrorStream());
|
var error = FileUtils.readString(process.getErrorStream());
|
||||||
throw new SignException(file);
|
throw new SignException(file, new IOException(error));
|
||||||
}
|
}
|
||||||
return FileUtils.readString(process.getInputStream());
|
return FileUtils.readString(process.getInputStream());
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,10 +19,6 @@ public class SignException extends RuntimeException {
|
||||||
private final File file_;
|
private final File file_;
|
||||||
private final String reason_;
|
private final String reason_;
|
||||||
|
|
||||||
public SignException(File file) {
|
|
||||||
this(file, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public SignException(File file, Throwable reason) {
|
public SignException(File file, Throwable reason) {
|
||||||
super("An error occurred while signing '" + file, reason);
|
super("An error occurred while signing '" + file, reason);
|
||||||
file_ = file;
|
file_ = file;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue