lexer: New function lex_error_expecting().
[pspp] / src / language / dictionary / attributes.c
index c7598d1c45b37899ecba1d7a375e3dbaea3d9987..fc9cc9a5d28b72dd7b86701fb1cf42557b66a9f0 100644 (file)
@@ -197,7 +197,7 @@ parse_attributes (struct lexer *lexer, const char *dict_encoding,
         command = DELETE;
       else if (command == UNKNOWN)
         {
-          lex_error (lexer, _("expecting %s or %s"), "ATTRIBUTE=", "DELETE=");
+          lex_error_expecting (lexer, "ATTRIBUTE=", "DELETE=", NULL_SENTINEL);
           return CMD_FAILURE;
         }