ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.580.1

This commit is contained in:
speakeasybot
2025-07-10 00:13:20 +00:00
parent a7ec77cd04
commit fe48f93ccb
109 changed files with 1509 additions and 279 deletions

View File

@@ -25,8 +25,14 @@ export class SDKError extends PlexAPIError {
}`;
}
const body = httpMeta.body || `""`;
message += body.length > 100 ? "\n" : " ";
message += `Body ${body}`;
message += body.length > 100 ? "\n" : ". ";
let bodyDisplay = body;
if (body.length > 10000) {
const truncated = body.substring(0, 10000);
const remaining = body.length - 10000;
bodyDisplay = `${truncated}...and ${remaining} more chars`;
}
message += `Body: ${bodyDisplay}`;
message = message.trim();
super(message, httpMeta);
this.name = "SDKError";