diff --git a/server/server.go b/server/server.go index be48466c..36bc33e8 100644 --- a/server/server.go +++ b/server/server.go @@ -158,6 +158,9 @@ func (s *Server) loadFs(access *confpar.Access) (afero.Fs, error) { } newFs, err := fs.LoadFs(access, s.logger) + if err != nil { + return nil, err + } if access.Shared { s.logger.Debug("Saving fs instance for later use", "user", access.User, "fsType", newFs.Name()) cache.accesses[access.User] = newFs