| // Check and throw if errant | // Check and throw if errant | ||||
| if (!proc_res.okay()) { | if (!proc_res.okay()) { | ||||
| throw_external_error< | |||||
| errc::link_failure>("Failed to link executable [{}]. Link command was [{}]", | |||||
| spec.output.string(), | |||||
| quote_command(link_command), | |||||
| proc_res.retc, | |||||
| proc_res.output); | |||||
| throw_external_error<errc::link_failure>( | |||||
| "Failed to link executable [{}]. Link command was [{}] [Exited {}], produced " | |||||
| "output:\n{}", | |||||
| spec.output.string(), | |||||
| quote_command(link_command), | |||||
| proc_res.retc, | |||||
| proc_res.output); | |||||
| } | } | ||||
| } | } | ||||