Skip to content

Commit

Permalink
Merge pull request #86 from reinholdfuereder/patch-1
Browse files Browse the repository at this point in the history
Add stash name to exception message for empty stash
  • Loading branch information
dwnusbaum committed Apr 23, 2019
2 parents b9d4cf3 + 373520a commit a7826a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static void stash(@Nonnull Run<?,?> build, @Nonnull String name, @Nonnull
try {
int count = workspace.archive(ArchiverFactory.TARGZ, os, new DirScanner.Glob(Util.fixEmpty(includes) == null ? "**" : includes, excludes, useDefaultExcludes));
if (count == 0 && !allowEmpty) {
throw new AbortException("No files included in stash");
throw new AbortException("No files included in stash ‘" + name + "’");
}
listener.getLogger().println("Stashed " + count + " file(s)");
} finally {
Expand Down

0 comments on commit a7826a3

Please sign in to comment.