Skip to content
Snippets Groups Projects
Commit fc3f8518 authored by Voltair's avatar Voltair
Browse files

display error description when failed

parent 0dca6a13
No related branches found
No related tags found
2 merge requests!84Develop,!74Hivesigner Integration
......@@ -300,29 +300,30 @@ function* broadcastPayload({
);
} else if (isLoggedInWithHiveSigner()) {
if (!needsActiveAuth) {
hiveSignerClient.broadcast(operations, function(
err,
result
) {
if (err) {
reject(err);
} else {
broadcastedEvent();
resolve();
hiveSignerClient.broadcast(
operations,
(err, result) => {
if (err) {
reject(err.error_description);
} else {
broadcastedEvent();
resolve();
}
}
});
);
} else {
sendOperationsWithHiveSigners(operations, {}, function(
err,
result
) {
if (err) {
reject(err);
} else {
broadcastedEvent();
resolve();
sendOperationsWithHiveSigners(
operations,
{},
(err, result) => {
if (err) {
reject(err.error_description);
} else {
broadcastedEvent();
resolve();
}
}
});
);
}
} else {
broadcast.send(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment