mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-14 12:43:24 +02:00
fixed error handler for create squeak (#588)
This commit is contained in:
parent
2587100417
commit
f63c511149
2 changed files with 3 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ import {
|
|||
InputLabel,
|
||||
Select,
|
||||
} from "@material-ui/core";
|
||||
|
||||
import { MoreVert as MoreIcon } from "@material-ui/icons";
|
||||
import {useHistory} from "react-router-dom";
|
||||
import classnames from "classnames";
|
||||
|
|
@ -66,7 +67,7 @@ export default function MakeSqueakDialog({
|
|||
};
|
||||
|
||||
const handleErr = (err) => {
|
||||
alert('Error making squeak: ' + err.message);
|
||||
alert('Error making squeak: ' + err);
|
||||
};
|
||||
|
||||
const createSqueak = (profileId, content, replyto) => {
|
||||
|
|
|
|||
|
|
@ -669,6 +669,7 @@ export function makeSqueakRequest(profileId, content, replyto, handleResponse, h
|
|||
request,
|
||||
MakeSqueakReply.deserializeBinary,
|
||||
handleResponse,
|
||||
handleErr,
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue