Assorted improvements to diagnostics.
[pspp] / src / language / command.c
index ab5bab904aa8911889075b0d04a7abedfad09c99..e67f6ab80800352ec1132cdb9d36866c87e63c3f 100644 (file)
@@ -548,7 +548,9 @@ cmd_erase (struct lexer *lexer, struct dataset *ds UNUSED)
 
   if (settings_get_safer_mode ())
     {
-      msg (SE, _("This command not allowed when the %s option is set."), "SAFER");
+      lex_ofs_error (lexer, 0, 0,
+                     _("This command not allowed when the %s option is set."),
+                     "SAFER");
       return CMD_FAILURE;
     }