From 451cd4ec3fbbc670e44acd72e498ee040f008edf Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Thu, 21 Oct 2021 21:01:05 +0200 Subject: [PATCH] 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` ``` --- script/discourse | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/discourse b/script/discourse index 1d4e4ff702c..bca7197c309 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.