Index: /fact/tools/pyscripts/pyfact/pyfact.py
===================================================================
--- /fact/tools/pyscripts/pyfact/pyfact.py	(revision 14157)
+++ /fact/tools/pyscripts/pyfact/pyfact.py	(revision 14158)
@@ -598,11 +598,11 @@
             #check if colname is in columns:
             if col_name not in columns:
-                error_msg = 'colname:'+ input_str +' is not a column in the binary table.\n'
+                error_msg = 'colname:'+ col_name +' is not a column in the binary table.\n'
                 error_msg+= 'possible colnames are\n'
                 for key in columns:
-                    error_msg += key+'\n'
+                    error_msg += key+'    '
                 raise KeyError(error_msg)
             else:
-                self._register(input_str)
+                self._register(col_name)
 
     # 'private' method, do not use
