diff --git a/lib/temporal.ts b/lib/temporal.ts index ed71812..89a4e8f 100644 --- a/lib/temporal.ts +++ b/lib/temporal.ts @@ -70,7 +70,7 @@ class Temporal { return res.data; }) .catch((err) => { - throw new Error(err.response.data.response); + throw new Error(err.response.data); }); } @@ -475,4 +475,4 @@ class Temporal { } } -module.exports = Temporal; \ No newline at end of file +module.exports = Temporal;