diff --git a/lib/to-lua.nix b/lib/to-lua.nix index dcf13ae7..4c4c7434 100644 --- a/lib/to-lua.nix +++ b/lib/to-lua.nix @@ -250,7 +250,7 @@ rec { + lib.concatStringsSep ("," + introSpace) ( lib.mapAttrsToList ( name: value: - (if allowExplicitEmpty && lib.hasPrefix "__unkeyed" name then "" else toTableKey name + " = ") + (if allowUnkeyedAttrs && lib.hasPrefix "__unkeyed" name then "" else toTableKey name + " = ") + lib.addErrorContext "while evaluating an attribute `${name}`" (go (indent + " ") value) ) v )