Skip to content

Commit

Permalink
speedy: less sassy error message
Browse files Browse the repository at this point in the history
This error message can occur when a template is missing onwiki. But it acts like it is because the user intentionally did not type a reason. I replaced it with a more neutral message.
  • Loading branch information
NovemLinguae committed Dec 8, 2024
1 parent 5152750 commit ee15bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/twinklespeedy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ Twinkle.speedy.callbacks = {
if (reason === null) {
return Morebits.Status.error('Asking for reason', 'User cancelled');
} else if (!reason || !reason.replace(/^\s*/, '').replace(/\s*$/, '')) {
return Morebits.Status.error('Asking for reason', "you didn't give one. I don't know... what with admins and their apathetic antics... I give up...");
return Morebits.Status.error('Asking for reason', 'The "reason" for deleting was not provided, or Twinkle was unable to compute it. Aborting.');
}

const deleteMain = function(callback) {
Expand Down

0 comments on commit ee15bd3

Please sign in to comment.