From 389990ebe56bc134018c079eafb7f010a94e2b5a Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Fri, 19 Apr 2024 08:28:12 +0530 Subject: [PATCH] Import_process: Pass the right variable for error (#26819) We were passing the incorrect variable, which printed nil in the logs ```release-note NONE ``` --- server/channels/jobs/import_process/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/channels/jobs/import_process/worker.go b/server/channels/jobs/import_process/worker.go index 90e640cf637..724291ebbd4 100644 --- a/server/channels/jobs/import_process/worker.go +++ b/server/channels/jobs/import_process/worker.go @@ -55,7 +55,7 @@ func MakeWorker(jobServer *jobs.JobServer, app AppIface) *jobs.SimpleWorker { // We simply read the file from the local filesystem. info, err := os.Stat(importFileName) if errors.Is(err, os.ErrNotExist) { - return fmt.Errorf("file %s doesn't exist.", importFile) + return fmt.Errorf("file %s doesn't exist.", importFileName) } importFileSize = info.Size()