lib/sup/mode.rb in sup-0.0.7 vs lib/sup/mode.rb in sup-0.0.8

- old
+ new

@@ -79,10 +79,10 @@ return unless BufferManager.ask_yes_or_no "File exists. Overwrite?" end begin File.open(fn, "w") { |f| yield f } BufferManager.flash "Successfully wrote #{fn}." - rescue SystemCallError => e + rescue SystemCallError, IOError => e BufferManager.flash "Error writing to file: #{e.message}" end end end