Commit 45a81446 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix warning for old categories.json format.

I'm not adding a new warning type to allow turning this off.
Instead everybody should just upgrade. No exceptions.
parent d626723d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ module JsDuck

      # Don't crash if old syntax is used.
      if @categories.is_a?(Hash) && @categories["categories"]
        Logger.instance.warn(:old_cat_format, 'Update categories file to contain just the array inside {"categories": [...]}')
        Logger.instance.warn(nil, 'Update categories file to contain just the array inside {"categories": [...]}')
        @categories = @categories["categories"]
      end