(candidate, _retry, stage, error, resolved)
| 187 | start(candidate) {}, |
| 188 | missing(candidate, _retry, message) {}, |
| 189 | error(candidate, _retry, stage, error, resolved) { |
| 190 | const spec = candidate.plan.spec |
| 191 | const cause = error instanceof Error ? (error.cause ?? error) : error |
| 192 | const message = stage === "load" ? errorMessage(error) : errorMessage(cause) |
| 193 | |
| 194 | if (stage === "install") { |
| 195 | const parsed = parsePluginSpecifier(spec) |
| 196 | publishPluginError(`Failed to install plugin ${parsed.pkg}@${parsed.version}: ${message}`) |
| 197 | return |
| 198 | } |
| 199 | |
| 200 | if (stage === "compatibility") { |
| 201 | publishPluginError(`Plugin ${spec} skipped: ${message}`) |
| 202 | return |
| 203 | } |
| 204 | |
| 205 | if (stage === "entry") { |
| 206 | publishPluginError(`Failed to load plugin ${spec}: ${message}`) |
| 207 | return |
| 208 | } |
| 209 | |
| 210 | publishPluginError(`Failed to load plugin ${spec}: ${message}`) |
| 211 | }, |
| 212 | }, |
| 213 | }), |
| 214 | ) |
nothing calls this directly
no test coverage detected