Skip to content

Commit

Permalink
DEV: Fix thor deprecation warning (#14680)
Browse files Browse the repository at this point in the history
```
Deprecation warning: Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `DiscourseCLI`
```
  • Loading branch information
CvX committed Oct 21, 2021
1 parent 70fa67a commit 451cd4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script/discourse
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 451cd4e

Please sign in to comment.