@@ -224,7 +224,7 @@ rec {
224224 if badAttrs != {} then
225225 throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'. This is caused by introducing a top-level `config' or `options' attribute. Add configuration attributes immediately on the top level instead, or move all of them (namely: ${toString (attrNames badAttrs)}) into the explicit `config' attribute."
226226 else
227− { _file = m._file or file;
227+ { _file = toString m._file or file;
228228 key = toString m.key or key;
229229 disabledModules = m.disabledModules or [];
230230 imports = m.imports or [];
@@ -232,7 +232,7 @@ rec {
232232 config = addFreeformType (addMeta (m.config or {}));
233233 }
234234 else
235− { _file = m._file or file;
235+ { _file = toString m._file or file;
236236 key = toString m.key or key;
237237 disabledModules = m.disabledModules or [];
238238 imports = m.require or [] ++ m.imports or [];