[Avida-SVN] r2726 - development/source/tools

blwalker at myxo.css.msu.edu blwalker at myxo.css.msu.edu
Tue Jul 22 10:53:23 PDT 2008


Author: blwalker
Date: 2008-07-22 13:53:23 -0400 (Tue, 22 Jul 2008)
New Revision: 2726

Modified:
   development/source/tools/cFile.cc
Log:

Now there is an informative error message when you try to use a ~ in a file name -- since Avida, at least in analyze mode, does not expand them.


Modified: development/source/tools/cFile.cc
===================================================================
--- development/source/tools/cFile.cc	2008-07-22 16:29:17 UTC (rev 2725)
+++ development/source/tools/cFile.cc	2008-07-22 17:53:23 UTC (rev 2726)
@@ -53,6 +53,7 @@
     if (err_id == EACCES) error_desc = "Access denied";
     else if (err_id == EINVAL) error_desc = "Invalid open flag or access mode";
     else if (err_id == ENOENT) error_desc = "File or path not found";
+    else if (_fname.Find('~') != -1) error_desc = "Tildes do not get expanded";
 
     // Print the error.
     cerr << "Error: Unable to open file '" << _fname << "' : " << error_desc << endl;




More information about the Avida-cvs mailing list