diff --git a/backend/mega/mega.go b/backend/mega/mega.go index 4eda36a44..b0ef2e10b 100644 --- a/backend/mega/mega.go +++ b/backend/mega/mega.go @@ -284,7 +284,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e } err = srv.LoginWithKeys(opt.SessionID, decodedMasterKey) if err != nil { - fs.Debugf(f, "login with previous auth keys failed: %v", err) + return nil, fmt.Errorf("login with previous auth keys failed: %w", err) } } }