DEV: Fix thor deprecation warning (#14680)

DEV: Fix thor deprecation warning (#14680)

Deprecation warning: Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `DiscourseCLI`
diff --git a/script/discourse b/script/discourse
index 1d4e4ff..bca7197 100755
--- a/script/discourse
+++ b/script/discourse
@@ -4,6 +4,10 @@
 require "thor"
 
 class DiscourseCLI < Thor
+  def self.exit_on_failure?
+    true
+  end
+
   desc "remap [--global,--regex] FROM TO", "Remap a string sequence across all tables"
   long_desc <<-LONGDESC
     Replace a string sequence FROM with TO across all tables.

GitHub sha: 451cd4ec3fbbc670e44acd72e498ee040f008edf

This commit appears in #14680 which was approved by eviltrout. It was merged by CvX.