slightly better errors
This commit is contained in:
parent
717d3f7711
commit
0192b16d90
|
@ -79,9 +79,10 @@ export async function sendTransaction(
|
|||
}
|
||||
|
||||
if (status.err) {
|
||||
console.warn('Tx status: ', status);
|
||||
throw new MangoError({
|
||||
txid: signature,
|
||||
message: `Transaction ${signature} failed (${JSON.stringify(status)})`,
|
||||
message: `${JSON.stringify(status)}`,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue