Commit f4cd7b9
committed
Return error response in submitBom
When an error occurs, there is no possibility for the calling code to know the details.
In my case, I'd like to be able to log error response body, in particular to be able to know which validation is KO when uploading a SBOM to DependencyTrack (that recently enabled JsonSchema validation on upload).
Signed-off-by: Maxime Robert <[email protected]>
Signed-off-by: Maxime Robert <[email protected]>1 parent df888c3 commit f4cd7b9
File tree
6 files changed
+36
-12
lines changed- bin
- types
6 files changed
+36
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
680 | 682 | | |
681 | 683 | | |
682 | 684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6194 | 6194 | | |
6195 | 6195 | | |
6196 | 6196 | | |
| 6197 | + | |
6197 | 6198 | | |
6198 | 6199 | | |
6199 | 6200 | | |
| |||
6277 | 6278 | | |
6278 | 6279 | | |
6279 | 6280 | | |
6280 | | - | |
6281 | 6281 | | |
6282 | 6282 | | |
6283 | 6283 | | |
6284 | | - | |
6285 | 6284 | | |
| 6285 | + | |
| 6286 | + | |
6286 | 6287 | | |
6287 | 6288 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | | - | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
148 | 166 | | |
149 | 167 | | |
150 | 168 | | |
| |||
155 | 173 | | |
156 | 174 | | |
157 | 175 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 176 | | |
163 | 177 | | |
164 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
263 | 264 | | |
264 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
265 | 272 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments