# HG changeset patch # User Chris Cannam # Date 1296738907 0 # Node ID 1c8898816fd0824ef3edf083cca3cfbdfe6c27b3 # Parent c3dee40e77d2194f5f71267e397945217ce18ef5 * More useful error message diff -r c3dee40e77d2 -r 1c8898816fd0 data/fileio/AudioFileReaderFactory.cpp --- a/data/fileio/AudioFileReaderFactory.cpp Mon Oct 25 21:14:40 2010 +0200 +++ b/data/fileio/AudioFileReaderFactory.cpp Thu Feb 03 13:15:07 2011 +0000 @@ -75,8 +75,13 @@ // std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation().toStdString() << "\"): Requested rate: " << targetRate << std::endl; - if (!source.isOK() || !source.isAvailable()) { - std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation().toStdString() << "\": Source unavailable" << std::endl; + if (!source.isOK()) { + std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation().toStdString() << "\": Failed to retrieve source (transmission error?): " << source.getErrorString().toStdString() << std::endl; + return 0; + } + + if (!source.isAvailable()) { + std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation().toStdString() << "\": Source not found" << std::endl; return 0; }