Mercurial > hg > svcore
changeset 682:bd527db65d20
More informative error message
author | Chris Cannam |
---|---|
date | Tue, 10 May 2011 17:55:57 +0100 |
parents | 6097aacd7ba3 |
children | f84f147572b9 99222d4bfc78 |
files | data/fileio/WavFileReader.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/data/fileio/WavFileReader.cpp Tue May 10 13:57:37 2011 +0100 +++ b/data/fileio/WavFileReader.cpp Tue May 10 17:55:57 2011 +0100 @@ -39,7 +39,8 @@ m_file = sf_open(m_path.toLocal8Bit(), SFM_READ, &m_fileInfo); if (!m_file || (!fileUpdating && m_fileInfo.channels <= 0)) { - std::cerr << "WavFileReader::initialize: Failed to open file (" + std::cerr << "WavFileReader::initialize: Failed to open file at \"" + << m_path.toStdString() << "\" (" << sf_strerror(m_file) << ")" << std::endl; if (m_file) { @@ -79,7 +80,7 @@ sf_close(m_file); m_file = sf_open(m_path.toLocal8Bit(), SFM_READ, &m_fileInfo); if (!m_file || m_fileInfo.channels <= 0) { - std::cerr << "WavFileReader::updateFrameCount: Failed to open file (" + std::cerr << "WavFileReader::updateFrameCount: Failed to open file at \"" << m_path.toStdString() << "\" (" << sf_strerror(m_file) << ")" << std::endl; } }