synthmod err_msg from std::string to char[]