Skip to content

Commit

Permalink
Throw BuildExceptions in ReplaceRegExp for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Quan committed Nov 15, 2023
1 parent 5c89d9e commit c7a282f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,13 @@ public void execute() throws BuildException {
log("An error occurred processing file: '"
+ file.getAbsolutePath() + "': " + e.toString(),
Project.MSG_ERR);
throw new BuildException("An error occurred processing file: '" + file.getAbsolutePath() + "'",
e, getLocation());
}
} else if (file != null) {
log("The following file is missing: '"
+ file.getAbsolutePath() + "'", Project.MSG_ERR);
throw new BuildException("The following file is missing: '" + file.getAbsolutePath() + "'");
}

if (resources != null) {
Expand All @@ -498,10 +501,13 @@ public void execute() throws BuildException {
log("An error occurred processing file: '"
+ f.getAbsolutePath() + "': " + e.toString(),
Project.MSG_ERR);
throw new BuildException("An error occurred processing file: '" + f.getAbsolutePath() + "'",
e, getLocation());
}
} else {
log("The following file is missing: '"
+ f.getAbsolutePath() + "'", Project.MSG_ERR);
throw new BuildException("The following file is missing: '" + f.getAbsolutePath() + "'");
}
}
}
Expand Down

0 comments on commit c7a282f

Please sign in to comment.