diff --git a/cli/command_repository_connect_from_config.go b/cli/command_repository_connect_from_config.go index 72e2a1b51..99d070fc6 100644 --- a/cli/command_repository_connect_from_config.go +++ b/cli/command_repository_connect_from_config.go @@ -46,6 +46,10 @@ func (c *storageFromConfigFlags) connectToStorageFromConfigFile(ctx context.Cont return nil, errors.Wrap(err, "unable to open config") } + if cfg.Storage == nil { + return nil, errors.Errorf("connection file does not specify blob storage connection parameters, kopia server connections are not supported") + } + // nolint:wrapcheck return blob.NewStorage(ctx, *cfg.Storage) }