Mercurial > hg > octave-lyh
diff src/error.cc @ 3620:0886bbb236cb
[project @ 2000-03-23 05:17:23 by jwe]
author | jwe |
---|---|
date | Thu, 23 Mar 2000 05:17:25 +0000 |
parents | c11d138d654a |
children | 58140935c812 |
line wrap: on
line diff
--- a/src/error.cc +++ b/src/error.cc @@ -72,8 +72,8 @@ std::cerr << name << ": "; } - octave_diary.vform (fmt, args); - std::cerr.vform (fmt, args); + octave_vformat (octave_diary, fmt, args); + octave_vformat (std::cerr, fmt, args); octave_diary << std::endl; std::cerr << std::endl; @@ -91,9 +91,12 @@ if (to_beep_or_not_to_beep_p) output_buf << "\a"; + if (name) output_buf << name << ": "; - output_buf.vform (fmt, args); + + octave_vformat (output_buf, fmt, args); + output_buf << std::endl << std::ends; char *msg = output_buf.str ();