File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
hub/src/main/java/cloud/katta/protocols/hub Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 88import ch .cyberduck .core .Host ;
99import ch .cyberduck .core .ListProgressListener ;
1010import ch .cyberduck .core .ListService ;
11+ import ch .cyberduck .core .LocaleFactory ;
1112import ch .cyberduck .core .OAuthTokens ;
1213import ch .cyberduck .core .Path ;
1314import ch .cyberduck .core .PathAttributes ;
2930import org .apache .logging .log4j .Logger ;
3031import org .cryptomator .cryptolib .api .UVFMasterkey ;
3132
33+ import java .text .MessageFormat ;
3234import java .util .EnumSet ;
3335
3436import cloud .katta .client .ApiException ;
@@ -130,6 +132,7 @@ public void preflight(final Path directory) throws BackgroundException {
130132 return ;
131133 }
132134 log .warn ("Deny directory listing with no vault available for {}" , directory );
133- throw new AccessDeniedException ();
135+ throw new AccessDeniedException (MessageFormat .format (LocaleFactory .localizedString ("Listing directory {0} failed" , "Error" ),
136+ directory .getName ())).withFile (directory );
134137 }
135138}
You can’t perform that action at this time.
0 commit comments