dobj err_msg from std::string to char[]