aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ring.cpp')
-rw-r--r--src/ring.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ring.cpp b/src/ring.cpp
index fb10552..ac3a09d 100644
--- a/src/ring.cpp
+++ b/src/ring.cpp
@@ -56,7 +56,8 @@ void
Buffer::save(const gchar *filename)
{
if (!filename && !Buffer::filename)
- throw Error("File name expected");
+ throw Error("Cannot save the unnamed file "
+ "without providing a file name");
IOView::save(filename ? : Buffer::filename);
@@ -166,7 +167,8 @@ Ring::save_all_dirty_buffers(void)
Buffer *cur;
TAILQ_FOREACH(cur, &head, buffers)
- if (cur->dirty && cur->filename)
+ if (cur->dirty)
+ /* NOTE: Will fail for the unnamed file */
cur->save();
}