()
| 15 | } |
| 16 | |
| 17 | func (err InvalidValueError) Error() string { |
| 18 | return fmt.Sprintf( |
| 19 | "task: Experiment %q has an invalid value %q (allowed values: %s)", |
| 20 | err.Name, |
| 21 | err.Value, |
| 22 | strings.Join(slicesext.Convert(err.AllowedValues, strconv.Itoa), ", "), |
| 23 | ) |
| 24 | } |
| 25 | |
| 26 | type InactiveError struct { |
| 27 | Name string |