Commit 02a9dc8
authored
Fail with error when --profile used without JSON format (#1918)
* Fail with error when --profile used without JSON format
The --profile flag only works with --format json but previously
produced no output silently when used with other formats. Now
returns an error telling the user to use --format json.
Fixes #1542
Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
* fix: use errors.New and add whitespace for linter compliance
Replace fmt.Errorf with errors.New (no format verbs) and add
blank line above ctx assignment per wsl_v5 linter.
Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
---------
Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>1 parent 422a9ef commit 02a9dc8
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
0 commit comments