Use lex_error_expecting() in more places.
[pspp] / src / language / data-io / combine-files.c
index dde261a68f5727d5d1b6c9ac95e6c0d64614e37d..3306ffec682842d94924230f2d341166edea4fcd 100644 (file)
@@ -357,7 +357,11 @@ combine_files (enum comb_command_type command,
         }
       else
        {
-         lex_error (lexer, NULL);
+          if (command == COMB_UPDATE)
+            lex_error_expecting (lexer, "BY", "MAP", "DROP", "KEEP");
+          else
+            lex_error_expecting (lexer, "BY", "FIRST", "LAST",
+                                 "MAP", "DROP", "KEEP");
          goto error;
        }