(err error)
| 1474 | } |
| 1475 | |
| 1476 | func normalizeContainerFileError(err error) error { |
| 1477 | if err == nil { |
| 1478 | return nil |
| 1479 | } |
| 1480 | message := strings.ToLower(err.Error()) |
| 1481 | if strings.Contains(message, "no such file or directory") || strings.Contains(message, "not found") { |
| 1482 | return buserr.New("ErrPathNotFound") |
| 1483 | } |
| 1484 | return err |
| 1485 | } |
| 1486 | |
| 1487 | func runContainerCommand(cli *client.Client, containerID string, command []string) (string, error) { |
| 1488 | raw, err := runContainerCommandRaw(cli, containerID, command) |
no test coverage detected