File tree 1 file changed +2
-1
lines changed
packages/angular/cli/lib/cli
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
import { createConsoleLogger } from '@angular-devkit/core/node' ;
9
+ import { normalize } from 'path' ;
9
10
import { format } from 'util' ;
10
11
import { runCommand } from '../../models/command-runner' ;
11
12
import { colors , supportsColor } from '../../utilities/color' ;
@@ -65,7 +66,7 @@ export default async function(options: { testing?: boolean; cliArgs: string[] })
65
66
const fs = await import ( 'fs' ) ;
66
67
const os = await import ( 'os' ) ;
67
68
const tempDirectory = fs . mkdtempSync ( fs . realpathSync ( os . tmpdir ( ) ) + '/' + 'ng-' ) ;
68
- const logPath = tempDirectory + '/angular-errors.log' ;
69
+ const logPath = normalize ( tempDirectory + '/angular-errors.log' ) ;
69
70
fs . appendFileSync ( logPath , '[error] ' + ( err . stack || err ) ) ;
70
71
71
72
logger . fatal (
You can’t perform that action at this time.
0 commit comments