Skip to content

Commit 45a2a01

Browse files
committed
fix(setup): not found task
1 parent 4579dce commit 45a2a01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/cle-cli/src/commands/setup.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ export async function setup(options: SetupOptions) {
6161

6262
logger.info('[+] Transaction Confirmed. Creating Setup Task')
6363
const data = await dispatcher.queryTask(txhash)
64+
if (!data) {
65+
logger.error('[+] SETUP TASK FAILED. The task result not found \n')
66+
return
67+
}
6468
const taskId = data.task?.id
6569
if (!taskId) {
66-
logger.error('[+] SETUP TASK FAILED. \n')
70+
logger.error('[+] SETUP TASK FAILED. The task result not found \n')
6771
return
6872
}
6973
logger.info(`[+] SETUP TASK STARTED. TASK ID: ${taskId}`)

0 commit comments

Comments
 (0)