There was an error while loading. Please reload this page.
1 parent 837bcfb commit 8294d3fCopy full SHA for 8294d3f
1 file changed
src/text-buffer.coffee
@@ -1552,7 +1552,7 @@ class TextBuffer
1552
1553
saveTo: (file) ->
1554
if @destroyed then throw new Error("Can't save destroyed buffer")
1555
- unless file then throw new Error("Must provide a file to save")
+ unless file then throw new Error("Can't save a buffer with no file")
1556
1557
filePath = file.getPath()
1558
if file instanceof File
0 commit comments