(str string, err error)
| 37 | } |
| 38 | |
| 39 | func stringOrError(str string, err error) ref.Val { |
| 40 | if err != nil { |
| 41 | return types.NewErrFromString(err.Error()) |
| 42 | } |
| 43 | return types.String(str) |
| 44 | } |
| 45 | |
| 46 | func listStringOrError(strs []string, err error) ref.Val { |
| 47 | if err != nil { |
no test coverage detected