bin/dump_stats in shiba-0.4.0 vs bin/dump_stats in shiba-0.5.0
- old
+ new
@@ -8,11 +8,13 @@
options = {}
parser = Shiba::Configure.make_options_parser(options, only_basics: true)
parser.banner = "Dump database statistics into yaml file."
parser.parse!
-Shiba.configure(options) do |errmsg|
- $stderr.puts(errmsg)
+begin
+ Shiba.configure(options)
+rescue Shiba::ConfigError => e
+ $stderr.puts(e.message)
$stderr.puts(parser.help)
exit 1
end
Shiba.connection.analyze!