CTABLES: Improve error messages.
[pspp] / src / language / stats / ctables.c
index 5359c4cabd3d010a8dd2c6ef55eeb44c31108ee7..05e9824b7d0b02fb88e10a6b025794fe3aa80af5 100644 (file)
@@ -890,7 +890,8 @@ ctables_pcexpr_parse_primary (struct lexer *lexer, struct dictionary *dict)
         }
       else
         {
-          lex_error (lexer, NULL);
+          lex_error (lexer,
+                     _("Syntax error expecting number or string or range."));
           return NULL;
         }
 
@@ -920,7 +921,7 @@ ctables_pcexpr_parse_primary (struct lexer *lexer, struct dictionary *dict)
     }
   else
     {
-      lex_error (lexer, NULL);
+      lex_error (lexer, _("Syntax error in postcompute expression."));
       return NULL;
     }
 
@@ -1883,7 +1884,7 @@ ctables_table_parse_explicit_category (struct lexer *lexer,
     }
   else
     {
-      lex_error (lexer, NULL);
+      lex_error (lexer, _("Syntax error expecting category specification."));
       return false;
     }