exportfunctiongateFailureMessage(gateName, error) {
const detail = error instanceofError ? error.message : String(error);
return (
`paqad could not run its ${gateName} check (${detail}). ` +
'Run "paqad-ai doctor" to repair the install, or set PAQAD_DISABLED=1 to turn paqad off.'
);
}