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:
parent
8bd64caec0
commit
50a5ad2641
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user