(annots []string, keyValueFormat bool, err error)
| 993 | } |
| 994 | |
| 995 | func getJSONFromStringsAnnotError(annots []string, keyValueFormat bool, err error) error { |
| 996 | whisk.Debug(whisk.DbgError, "getJSONFromStrings(%#v, %t) failed: %s\n", annots, keyValueFormat, err) |
| 997 | |
| 998 | errMsg := wski18n.T( |
| 999 | "Invalid annotation argument '{{.annotation}}': {{.err}}", |
| 1000 | map[string]interface{}{ |
| 1001 | "annotation": fmt.Sprintf("%#v", annots), |
| 1002 | "err": err, |
| 1003 | }) |
| 1004 | |
| 1005 | return nestedError(errMsg, err) |
| 1006 | } |
| 1007 | |
| 1008 | func invalidFieldFilterError(field string) error { |
| 1009 | errMsg := wski18n.T( |
no test coverage detected