Import_process: Pass the right variable for error (#26819)

We were passing the incorrect variable, which printed nil
in the logs

```release-note
NONE
```
This commit is contained in:
Agniva De Sarker 2024-04-19 08:28:12 +05:30 committed by GitHub
parent b4b760274d
commit 389990ebe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()