diff data/fileio/MatrixFile.cpp @ 236:3e6fee4e4257

* remove some debug and some obsolete moc file includes
author Chris Cannam
date Mon, 26 Feb 2007 14:55:08 +0000
parents 0d943a3fcc77
children dc46851837d6
line wrap: on
line diff
--- a/data/fileio/MatrixFile.cpp	Fri Feb 16 15:47:23 2007 +0000
+++ b/data/fileio/MatrixFile.cpp	Mon Feb 26 14:55:08 2007 +0000
@@ -134,7 +134,7 @@
     } else {
         size_t header[2];
         if (::read(m_fd, header, 2 * sizeof(size_t)) < 0) {
-            perror("Read failed");
+            ::perror("MatrixFile::MatrixFile: read failed");
             std::cerr << "ERROR: MatrixFile::MatrixFile: "
                       << "Failed to read header (fd " << m_fd << ", file \""
                       << fileName.toStdString() << "\")" << std::endl;
@@ -359,6 +359,9 @@
     
     if (r < 0) {
         ::perror("MatrixFile::getColumnAt: read failed");
+        std::cerr << "ERROR: MatrixFile::getColumnAt: "
+                  << "Failed to read column " << x << " (height " << m_height << ", cell size " << m_cellSize << ", fd " << m_fd << ", file \""
+                  << m_fileName.toStdString() << "\")" << std::endl;
         throw FileReadFailed(m_fileName);
     }