Skip to content

Commit

Permalink
fix: include message in TimeoutError for .fernignore clients.
Browse files Browse the repository at this point in the history
  • Loading branch information
eyw520 committed Feb 10, 2025
1 parent 44a70e8 commit eb45a8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/api/resources/tts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class Tts {
body: _response.error.rawBody,
});
case "timeout":
throw new errors.CartesiaTimeoutError();
throw new errors.CartesiaTimeoutError("Timeout exceeded when calling POST /tts/bytes.");
case "unknown":
throw new errors.CartesiaError({
message: _response.error.errorMessage,
Expand Down Expand Up @@ -147,7 +147,7 @@ export class Tts {
body: _response.error.rawBody,
});
case "timeout":
throw new errors.CartesiaTimeoutError();
throw new errors.CartesiaTimeoutError("Timeout exceeded when calling POST /tts/sse.");
case "unknown":
throw new errors.CartesiaError({
message: _response.error.errorMessage,
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/voiceChanger/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as environments from "../../../../environments";
import * as core from "../../../../core";
import * as fs from "fs";
import { Blob } from "buffer";
import * as Cartesia from "../../../index";
import * as fs from "fs";
import * as stream from "stream";
import urlJoin from "url-join";
import * as core from "../../../../core";
import * as environments from "../../../../environments";
import * as errors from "../../../../errors/index";
import * as serializers from "../../../../serialization/index";
import * as Cartesia from "../../../index";

export declare namespace VoiceChanger {
interface Options {
Expand Down Expand Up @@ -103,7 +103,7 @@ export class VoiceChanger {
body: _response.error.rawBody,
});
case "timeout":
throw new errors.CartesiaTimeoutError();
throw new errors.CartesiaTimeoutError("Timeout exceeded when calling POST /voice-changer/bytes.");
case "unknown":
throw new errors.CartesiaError({
message: _response.error.errorMessage,
Expand Down Expand Up @@ -189,7 +189,7 @@ export class VoiceChanger {
body: _response.error.rawBody,
});
case "timeout":
throw new errors.CartesiaTimeoutError();
throw new errors.CartesiaTimeoutError("Timeout exceeded when calling POST /voice-changer/sse.");
case "unknown":
throw new errors.CartesiaError({
message: _response.error.errorMessage,
Expand Down

0 comments on commit eb45a8d

Please sign in to comment.