Fix module importer error msg & test
This commit is contained in:
@@ -296,7 +296,7 @@ func (mImp *Module) resolveRefs(module *types.Module) (uint, error) {
|
||||
}
|
||||
|
||||
if refmod, err := mImp.Get(refHandle); err != nil || refmod == nil {
|
||||
return errors.Errorf("could not load module %q on module %q, field %q options, err: %v)",
|
||||
return errors.Errorf("could not load module %q on module %q, field %q options (err: %v)",
|
||||
refHandle, module.Handle, field.Name, err)
|
||||
} else {
|
||||
refs++
|
||||
|
||||
@@ -104,7 +104,7 @@ func TestModuleImport_CastSet(t *testing.T) {
|
||||
_, err = module.resolveRefs(m)
|
||||
return err
|
||||
}),
|
||||
`could not load module "modFoo" for page "modA" block #1 (err: <nil>)`)
|
||||
`could not load module "modFoo" on module "modA", field "ref2" options (err: <nil>)`)
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user