File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ setup.cfg
44setup.py
55webpack_loader/__init__.py
66webpack_loader/apps.py
7+ webpack_loader/errors.py
78webpack_loader/signals.py
89webpack_loader/utils.py
910webpack_loader/contrib/__init__.py
Original file line number Diff line number Diff line change 11from distutils .core import setup
22
3- version = '0.2.0 '
3+ version = '0.2.1 '
44
55setup (
66 name = 'django-webpack-loader' ,
Original file line number Diff line number Diff line change 3131 entry ['ignores' ] = [re .compile (I ) for I in entry ['IGNORE' ]]
3232
3333
34- class WebpackException (BaseException ):
34+ class WebpackError (BaseException ):
35+ pass
36+
37+
38+ class WebpackLoaderBadStatsError (BaseException ):
3539 pass
3640
3741
@@ -79,4 +83,9 @@ def get_bundle(bundle_name, config):
7983 {error} in {file}
8084 {message}
8185 """ .format (** assets )
82- raise WebpackException (error )
86+ raise WebpackError (error )
87+
88+ raise WebpackLoaderBadStatsError (
89+ "The stats file does not contain valid data. Make sure "
90+ "webpack-bundle-tracker plugin is enabled and try to run "
91+ "webpack again." )
You can’t perform that action at this time.
0 commit comments