Continue reforming error message support. In this phase, get rid of
[pspp-builds.git] / src / data / casefile.c
index 1ae743bd965fd81ea2c57738ae5e9f114959b1fd..66baba96b918e13d83ec4e53c96bd4963e16b611 100644 (file)
@@ -736,14 +736,15 @@ io_error (struct casefile *cf, const char *format, ...)
       struct error e;
       va_list args;
 
-      e.class = ME;
+      e.category = MSG_GENERAL;
+      e.severity = MSG_ERROR;
       e.where.file_name = NULL;
       e.where.line_number = -1;
-      e.title = NULL;
-
       va_start (args, format);
-      err_vmsg (&e, format, args);
+      e.text = xvasprintf (format, args);
       va_end (args);
+      
+      err_msg (&e);
     }
   cf->ok = false;
 }