Commit 2e99e1d7 authored by Keegi's avatar Keegi

improve confusing message about saving key when it is erased

parent 8dd97e12
......@@ -377,7 +377,10 @@ class pronsole(cmd.Cmd):
os.rename(rci.name,rci.name+"~old")
rco.close()
os.rename(rco.name,self.rc_filename)
print "Saved '"+key+"' to '"+self.rc_filename+"'"
if definition != "":
print "Saved '"+key+"' to '"+self.rc_filename+"'"
else:
print "Removed '"+key+"' from '"+self.rc_filename+"'"
except Exception, e:
print "Saving failed for",key+":",str(e)
finally:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment