* config.cpp: fix parsing invalid hex Instead of crashing on an invalid hex, return an error. * config: return an error on an invalid hex value * cleanup * style: add references for catching exceptions * style: ignore `std::out_of_range`