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 012b8fe commit f14aaca
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 f14aaca

Please sign in to comment.