(_getpty): Declare this, not _get_pty.
[bpt/emacs.git] / src / process.c
index a3e1041..567c9c9 100644 (file)
@@ -2573,7 +2573,7 @@ nil, indicating the current buffer's process.")
   if (! NILP (XPROCESS (proc)->raw_status_low))
     update_status (XPROCESS (proc));
   if (! EQ (XPROCESS (proc)->status, Qrun))
-    error ("Process %s not running", procname);
+    error ("Process %s not running", XSTRING (XPROCESS (proc)->name)->data);
 
   /* Sending a zero-length record is supposed to mean eof
      when TIOCREMOTE is turned on.  */