Skip to content

Commit ea3583f

Browse files
authored
Merge pull request #1753 from codidact/0valt/1466/edit-logout-error
fixed lack of visible error when failing to delete post drafts
2 parents 90780a7 + 0261c40 commit ea3583f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/posts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ $(() => {
322322
}
323323
}
324324
else {
325-
console.error('Failed to delete draft.');
325+
QPixel.createNotification('danger', `Failed to delete post draft. (${resp.status})`);
326326
}
327327
}
328328

0 commit comments

Comments
 (0)