Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8045)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8046)
@@ -22,4 +22,5 @@
    * datacenter/macros/writesequencefile.C:
      - fixed a possible crash in GetName
+     - improved output in case of failure
 
 
Index: trunk/MagicSoft/Mars/datacenter/macros/writesequencefile.C
===================================================================
--- trunk/MagicSoft/Mars/datacenter/macros/writesequencefile.C	(revision 8045)
+++ trunk/MagicSoft/Mars/datacenter/macros/writesequencefile.C	(revision 8046)
@@ -102,5 +102,11 @@
 
     TSQLRow *row = res->Next();
-    return row ? (*row)[0] : "";
+    if (!row)
+    {
+        cout << "ERROR - No name in " << col << " for key " << n << endl;
+        return "";
+    }
+
+    return (*row)[0];
 }
 
