File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -414,8 +414,11 @@ fun Route.products() = route("products/{productId}") {
414
414
if (disabledPlugins.isNotEmpty()) {
415
415
call.respond(
416
416
HttpStatusCode .BadRequest ,
417
- " The following plugins are disabled in this ORT Server instance: " +
418
- disabledPlugins.joinToString { (type, id) -> " $id ($type )" }
417
+ ErrorResponse (
418
+ message = " Disabled plugins are used." ,
419
+ cause = " The following plugins are disabled in this ORT Server instance: " +
420
+ disabledPlugins.joinToString { (type, id) -> " $id ($type )" }
421
+ )
419
422
)
420
423
return @post
421
424
}
Original file line number Diff line number Diff line change @@ -155,8 +155,11 @@ fun Route.repositories() = route("repositories/{repositoryId}") {
155
155
if (disabledPlugins.isNotEmpty()) {
156
156
call.respond(
157
157
HttpStatusCode .BadRequest ,
158
- " The following plugins are disabled in this ORT Server instance: " +
159
- disabledPlugins.joinToString { (type, id) -> " $id ($type )" }
158
+ ErrorResponse (
159
+ message = " Disabled plugins are used." ,
160
+ cause = " The following plugins are disabled in this ORT Server instance: " +
161
+ disabledPlugins.joinToString { (type, id) -> " $id ($type )" }
162
+ )
160
163
)
161
164
return @post
162
165
}
You can’t perform that action at this time.
0 commit comments