mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-10 20:47:48 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.580.1
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user