lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] (no subject)


From: Greg Chicares
Subject: [lmi-commits] (no subject)
Date: Wed, 15 Jun 2016 23:33:07 +0000 (UTC)

branch: master
commit 1abbe2e2b405bc0ada69532d3189c09388f1dbaa
Author: Gregory W. Chicares <address@hidden>
Date:   Wed Jun 15 23:32:17 2016 +0000

    Don't delete an invalid default-input file
    
    Warn the user if the default-input file is invalid, but don't delete
    it because that's draconian.
---
 illustrator.cpp |   25 ++++++-------------------
 1 file changed, 6 insertions(+), 19 deletions(-)

diff --git a/illustrator.cpp b/illustrator.cpp
index 20608f5..0e2ebbb 100644
--- a/illustrator.cpp
+++ b/illustrator.cpp
@@ -42,7 +42,6 @@
 
 #include <boost/filesystem/convenience.hpp>
 
-#include <cstdio>                       // std::remove()
 #include <iostream>
 #include <string>
 
@@ -208,24 +207,12 @@ Input const& default_cell()
         catch(...)
             {
             report_exception();
-            if(0 == std::remove(default_input_file.c_str()))
-                {
-                warning()
-                    << "Removed defective default input file '"
-                    << default_input_file
-                    << "'."
-                    << LMI_FLUSH
-                    ;
-                }
-            else
-                {
-                warning()
-                    << "Unable to remove defective default input file '"
-                    << default_input_file
-                    << "'. Make sure it is not write protected."
-                    << LMI_FLUSH
-                    ;
-                }
+            warning()
+                << "Unable to read default input file '"
+                << default_input_file
+                << "'. Built-in default parameters will be used instead."
+                << LMI_FLUSH
+                ;
             }
         }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]