13
0

triggerbox: catch failure to load files

This commit is contained in:
Paul Davis 2021-12-18 08:29:35 -07:00
parent 8e3e3ea01f
commit 16dfb410bc

View File

@ -1775,6 +1775,11 @@ TriggerBox::set_from_path (uint64_t slot, std::string const & path)
return;
}
if (status.sources.empty()) {
error << string_compose (_("Could not create source from %1"), path) << endmsg;
return;
}
/* XXX need to check data type */
SourceList src_list;