Skip to content

Commit

Permalink
bulk: update message returned when trying to stage a file present on …
Browse files Browse the repository at this point in the history
…disk

Motivation: as per ticket #10666 when a user tries to stage a file from disk it is an illegal transition.

Modification: update message displayed to user.

Result: user will know this is intended functionality.

Acked-by:Lea Morschel
Target: master
Require-book: no
Require-notes: no
  • Loading branch information
khys95 committed Dec 13, 2024
1 parent 484e967 commit abe4bd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private void checkStageable(FileAttributes attributes) throws CacheException {
checkPinnable(attributes);

if (attributes.getRetentionPolicy() != RetentionPolicy.CUSTODIAL) {
throw new CacheException(INVALID_ARGS, "File not on tape.");
throw new CacheException(INVALID_ARGS, "Cannot stage DISK only files");
}
}

Expand Down

0 comments on commit abe4bd9

Please sign in to comment.