summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/device.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/device.cxx b/test/device.cxx
index 8b04e53d2..518612c61 100644
--- a/test/device.cxx
+++ b/test/device.cxx
@@ -677,7 +677,7 @@ void copy(Fl_Widget *, void *data) {
if (surface.file()) {
if (target->as_window()) surface.draw_decorated_window(target->as_window());
else surface.draw(target);
- surface.close();
+ if (surface.close()) fl_message("Error while writing to SVG file %s", fnfc.filename());
}
}
}