[m-dev.] trivial diff: fix typo in error message

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Dec 29 14:43:51 AEDT 2000


Estimated hours taken: 0.25

library/io.m:
	Fix a bug in an error message: I'd forgotten to put ": "
	between "error {opening,closing} temporary file" and the
	string returned by strerror().

Workspace: /home/pgrad/fjh/ws/hg
Index: library/io.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/io.m,v
retrieving revision 1.216.2.1
diff -u -d -r1.216.2.1 io.m
--- library/io.m	2000/12/26 02:04:16	1.216.2.1
+++ library/io.m	2000/12/29 03:40:25
@@ -3790,12 +3790,12 @@
 	} while (fd == -1 && errno == EEXIST &&
 		num_tries < MAX_TEMPNAME_TRIES);
 	if (fd == -1) {
-		ML_maybe_make_err_msg(TRUE, ""error opening temporary file"",
+		ML_maybe_make_err_msg(TRUE, ""error opening temporary file: "",
 			MR_PROC_LABEL, ErrorMessage);
 		Error = -1;
 	}  else {
 		err = close(fd);
-		ML_maybe_make_err_msg(err, ""error closing temporary file"",
+		ML_maybe_make_err_msg(err, ""error closing temporary file: "",
 			MR_PROC_LABEL, ErrorMessage);
 		Error = err;
 	}

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list