better exception

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-01-16 15:04:28 +01:00
parent 16fd088d91
commit 7702386ccc
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -317,7 +317,8 @@ public class DocumentsStorageProvider extends DocumentsProvider {
.execute(client, currentStorageManager);
if (!result.isSuccess()) {
throw new FileNotFoundException("Failed to rename document with documentId " + documentId);
throw new FileNotFoundException("Failed to rename document with documentId " + documentId + ": " +
result.getException());
}
return null;