aspnet-webpack icon indicating copy to clipboard operation
aspnet-webpack copied to clipboard

When webpack is not installed the exception message is missleading

Open mjamro opened this issue 8 years ago • 0 comments

When you're running Kestrel and don't have webpack installed an exception is thrown with such message:

https://github.com/xabikos/aspnet-webpack/blob/eda5909e7f0d5c52de9b70280bfed106358678cc/src/Webpack/Webpack.cs#L57-L59

This is misleading. It would be better to handle those two cases separately and throw something like "WebpackNotInstalledException" when running Kestrel without webpack, and the existing exception when running on IIS.

mjamro avatar Jan 22 '18 14:01 mjamro