Skip to content

Commit

Permalink
speedy: less sassy error message (#2118)
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 authored Dec 9, 2024
1 parent 1c6516c commit e40b960
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 @@ -1220,7 +1220,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 e40b960

Please sign in to comment.