noticed need for additional exception

pull/14/head
Dimitri Diakopoulos 10 years ago
parent 0e78a2ed80
commit 859e58052c

@ -117,9 +117,14 @@ std::string NyquistIO::ParsePathForExtension(const std::string & path) const
}
std::shared_ptr<BaseDecoder> NyquistIO::GetDecoderForExtension(const std::string ext)
{
if (decoderTable.size())
{
return decoderTable[ext];
}
else throw std::runtime_error("No available decoders.");
return nullptr;
}
void NyquistIO::BuildDecoderTable()
{

Loading…
Cancel
Save