Skip to content

Commit

Permalink
Fix error message (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Oct 4, 2021
1 parent aa4d373 commit 2bfd0e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deno/src/core/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ class ApiClient<R extends RawApi> {
}
if (this.options.apiRoot.endsWith('/'))
throw new Error(
`Remove the trailing '/' from the 'apiRoot' option! (Use '${this.options.apiRoot.substr(
`Remove the trailing '/' from the 'apiRoot' option (use '${this.options.apiRoot.substr(0,
this.options.apiRoot.length - 1
)}' instead of '${this.options.apiRoot}'.)`
)}' instead of '${this.options.apiRoot}')`
)
}

Expand Down

0 comments on commit 2bfd0e3

Please sign in to comment.