add more debug
This commit is contained in:
parent
bf19921659
commit
8311b1d01f
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ func DownloadItem(hub *csconfig.Hub, target Item, overwrite bool) (Item, error)
|
|||
log.Debugf("%s : up-to-date, not updated", target.Name)
|
||||
data, err := os.ReadFile(target.LocalPath)
|
||||
if err != nil {
|
||||
return target, err
|
||||
return target, errors.Wrapf(err, "reading file '%s'", target.LocalPath)
|
||||
}
|
||||
if err := downloadData(dataFolder, target.Author, overwrite, bytes.NewReader(data)); err != nil {
|
||||
return target, errors.Wrapf(err, "while downloading data for %s", target.FileName)
|
||||
|
|
Loading…
Reference in a new issue