(err: any, output: Log)
| 306 | } |
| 307 | |
| 308 | function logErrorStdoutStderr(err: any, output: Log) { |
| 309 | if (err?.message) { |
| 310 | output.write(err.message, LogLevel.Error); |
| 311 | } |
| 312 | if (err?.stdout) { |
| 313 | output.write(err.stdout.toString(), LogLevel.Error); |
| 314 | } |
| 315 | if (err?.stderr) { |
| 316 | output.write(toErrorText(err.stderr.toString()), LogLevel.Error); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | export async function inspectImageInRegistry(output: Log, platformInfo: PlatformInfo, name: string): Promise<ImageDetails> { |
| 321 | const resourceAndVersion = qualifyImageName(name); |
no test coverage detected