mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue