Skip to content

Commit

Permalink
Add message in error
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Aug 11, 2023
1 parent d33f6a0 commit 208c339
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions actions/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ async function _checkForSettlement(
});
}
}
} catch (error: any) {
console.error("Error checking for settlement", error);
} catch (e: any) {
console.error("Error checking for settlement" + e?.message, e);

return { error: true };
}
Expand All @@ -109,7 +109,10 @@ async function getTradeableOrderWithSignature(
conditionalOrder.proof ? conditionalOrder.proof.path : []
)
.catch((e) => {
console.error('Error during "getTradeableOrderWithSignature" call', e);
console.error(
'Error during "getTradeableOrderWithSignature" call: ' + e?.message,
e
);
throw e;
});
}
Expand Down

0 comments on commit 208c339

Please sign in to comment.