fixed error handler for create squeak (#588)

This commit is contained in:
azernik 2021-01-10 20:52:36 +02:00 committed by GitHub
parent 2587100417
commit f63c511149
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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) => {

View file

@ -669,6 +669,7 @@ export function makeSqueakRequest(profileId, content, replyto, handleResponse, h
request,
MakeSqueakReply.deserializeBinary,
handleResponse,
handleErr,
);
};