Print a warning in case a fallback value wasn't found

0.6.3
Capostrophic 7 years ago committed by Capostrophic
parent e4531a6910
commit 002ad9ae1b

@ -1,5 +1,7 @@
#include "fallback.hpp"
#include <iostream>
#include <boost/lexical_cast.hpp>
@ -17,6 +19,7 @@ namespace Fallback
std::map<std::string,std::string>::const_iterator it;
if((it = mFallbackMap.find(fall)) == mFallbackMap.end())
{
std::cerr << "Warning: fallback value " << fall << " not found." << std::endl;
return "";
}
return it->second;

Loading…
Cancel
Save