CORRELATIONS: Improve error messages and coding style.
[pspp] / src / language / stats / graph.c
index 8157bb295887c762f2362005b6e8f4bfcb474dcf..5c5619105222a866a72f83ad5ac0e42eeedcab28 100644 (file)
@@ -840,7 +840,7 @@ cmd_graph (struct lexer *lexer, struct dataset *ds)
              const struct variable *v = NULL;
              if (!lex_match_variable (lexer,graph.dict,&v))
                {
-                 lex_error (lexer, _("Variable expected"));
+                 lex_error (lexer, _("Syntax error expecting variable name."));
                  goto error;
                }
              graph.by_var[0] = v;
@@ -880,7 +880,6 @@ cmd_graph (struct lexer *lexer, struct dataset *ds)
       else if (lex_match_id (lexer, "FOOTNOTE"))
        {
          lex_error (lexer, _("%s is not yet implemented."),"FOOTNOTE");
-         lex_error (lexer, _("FOOTNOTE is not implemented yet for GRAPH"));
          goto error;
        }
       else if (lex_match_id (lexer, "MISSING"))