mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-15 12:50:47 +02:00
Show alert when makesqueak fails (#124)
This commit is contained in:
parent
65fb2635a5
commit
272d018f06
1 changed files with 6 additions and 0 deletions
|
|
@ -53,6 +53,12 @@ export default function MakeSqueakPage() {
|
|||
console.log(makeSqueakRequest);
|
||||
|
||||
client.makeSqueak(makeSqueakRequest, {}, (err, response) => {
|
||||
if (err) {
|
||||
console.log(err.message);
|
||||
alert('Error making squeak: ' + err.message);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(response);
|
||||
console.log(response.getHash());
|
||||
goToSqueakPage(response.getHash());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue