refac: error handling
This commit is contained in:
1 parent
2fc8ace46d
commit
5656f030c4
4 files changed
+32
-9
No files matched your search
@@ -1639,10 +1639,12 @@
|
||||
return null;
|
||||
});
|
||||
|
||||
console.log(res);
|
||||
|
||||
if (res) {
|
||||
taskId = res.task_id;
|
||||
if (res.error) {
|
||||
await handleOpenAIError(res.error, responseMessage);
|
||||
} else {
|
||||
taskId = res.task_id;
|
||||
}
|
||||
}
|
||||
|
||||
await tick();
|
||||
|
||||
Reference in new issue
Block a user