Continue reforming error message support. In this phase, get rid of
[pspp-builds.git] / src / language / expressions / helpers.c
index 9d0d18cab134185f5d5b4d308e21a7a5be12fef4..3e28d8fe6129dc2f78f8ccd00cdcb4453b45f4c1 100644 (file)
@@ -18,11 +18,11 @@ expr_error (void *aux UNUSED, const char *format, ...)
   e.category = MSG_SYNTAX;
   e.severity = MSG_ERROR;
   err_location (&e.where);
-  e.title = NULL;
-
   va_start (args, format);
-  err_vmsg (&e, format, args);
+  e.text = xvasprintf (format, args);
   va_end (args);
+
+  err_msg (&e);
 }
 
 double