src/addObjectDialog.cpp

changeset 213
a4113545242c
parent 202
a027f6fc6141
child 232
4e44c92e21dd
--- a/src/addObjectDialog.cpp	Fri May 17 03:11:47 2013 +0300
+++ b/src/addObjectDialog.cpp	Fri May 17 11:53:28 2013 +0300
@@ -481,8 +481,10 @@
 				return; // no subfile filename
 			
 			OpenFile* file = loadSubfile (name);
-			if (!file)
+			if (!file) {
+				critical (fmt ("Couldn't open `%s': %s", name.c (), strerror (errno)));
 				return;
+			}
 			
 			LDSubfile* ref = initObj<LDSubfile> (obj);
 			ref->color = dlg.dColor;

mercurial