1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

Fix paste creation error notification data

This commit is contained in:
Lukas Schulte Pelkum 2021-05-23 20:33:40 +02:00
parent 8bd64caec0
commit 50a5ad2641
No known key found for this signature in database
GPG Key ID: 408DA7CA81DB885C

View File

@ -57,7 +57,7 @@ export function setupButtons() {
// Create the paste
const response = await api.createPaste(input.value);
if (!response.ok) {
notifications.error("Failed creating the paste: <b>" + data + "</b>");
notifications.error("Failed creating the paste: <b>" + await response.text() + "</b>");
return;
}
const data = await response.json();