Co-authored-by: AlteredCoder <AlteredCoder>
This commit is contained in:
AlteredCoder 2020-06-01 18:32:01 +02:00 committed by GitHub
parent 430b7cd90d
commit 72d1fe4c3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,6 +285,10 @@ func LoadBucket(g *BucketFactory, dataFolder string) error {
if len(g.Data) > 0 {
for _, data := range g.Data {
if data.DestPath == "" {
g.logger.Errorf("no dest_file provided for '%s'", g.Name)
continue
}
err = exprhelpers.FileInit(dataFolder, data.DestPath, data.Type)
if err != nil {
g.logger.Errorf("unable to init data for file '%s': %s", data.DestPath, err.Error())