Skip to content

Commit

Permalink
'#43 improves exception handling. Unique skipped exception is the one
Browse files Browse the repository at this point in the history
that does informs the non existence of registered artifacts in script,
meaning it won't be treated as a plugin. Other exceptions are rethrown.
  • Loading branch information
patrickdalla committed Oct 9, 2023
1 parent 8f325da commit cd8ede2
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,14 @@ private void loadArtifacts(File scriptFile) {


} catch (Exception e) {
// the file does not have an __artifacts__ declared variable, meaning it is not
// a plugin.
if (e.getMessage().contains("artifacts")) {
// Ignores as the file does not have an __artifacts__ declared variable, meaning
// it is not
// a plugin.
} else {
throw e; // otherwise, rethrows the exception
}

}

}
Expand Down

0 comments on commit cd8ede2

Please sign in to comment.