mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
parent
b4b760274d
commit
389990ebe5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user