File tree 2 files changed +12
-2
lines changed
src/Microsoft.AspNetCore.SpaServices/Content/Node
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ module.exports.renderToString = function (callback) {
7
7
// Developers sometimes have trouble with badly-configured Node installations, where it's unable
8
8
// to find node_modules. Or they accidentally fail to deploy node_modules, or even to run 'npm install'.
9
9
// Make sure such errors are reported back to the .NET part of the app.
10
- callback ( 'Prerendering failed because of an error while loading \'aspnet-prerendering\'. Error was: ' + ex . stack ) ;
10
+ callback (
11
+ 'Prerendering failed because of an error while loading \'aspnet-prerendering\'. Error was: '
12
+ + ex . stack
13
+ + '\nCurrent directory is: '
14
+ + process . cwd ( )
15
+ ) ;
11
16
return ;
12
17
}
13
18
Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ module.exports.createWebpackDevServer = function (callback) {
7
7
// Developers sometimes have trouble with badly-configured Node installations, where it's unable
8
8
// to find node_modules. Or they accidentally fail to deploy node_modules, or even to run 'npm install'.
9
9
// Make sure such errors are reported back to the .NET part of the app.
10
- callback ( 'Webpack dev middleware failed because of an error while loading \'aspnet-webpack\'. Error was: ' + ex . stack ) ;
10
+ callback (
11
+ 'Webpack dev middleware failed because of an error while loading \'aspnet-webpack\'. Error was: '
12
+ + ex . stack
13
+ + '\nCurrent directory is: '
14
+ + process . cwd ( )
15
+ ) ;
11
16
return ;
12
17
}
13
18
You can’t perform that action at this time.
0 commit comments