diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d9195d38ad..7f8547316f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -184,7 +184,7 @@ This project uses asdf, and there is a .tool-versions file at the project root. ```sh docker compose up -d minio -docker compose exec -it bash +docker compose exec -it minio bash # Inside the container mc alias set local http://localhost:9000 "$MINIO_ROOT_USER" "$MINIO_ROOT_PASSWORD" diff --git a/pkg/lib/userexport/service.go b/pkg/lib/userexport/service.go index 8fdd4a250f..bba2b644fc 100644 --- a/pkg/lib/userexport/service.go +++ b/pkg/lib/userexport/service.go @@ -184,6 +184,12 @@ func (s *UserExportService) convertDBUserToRecord(user *user.UserForExport) (rec } func (s *UserExportService) ExportRecords(ctx context.Context, request *Request, task *redisqueue.Task) (outputFilename string, err error) { + defer func() { + if err != nil { + s.Logger.WithError(err).Error("export failed") + } + }() + resultFile, err := os.CreateTemp("", fmt.Sprintf("export-%s.tmp", task.ID)) if err != nil { return