Skip to content

Commit 28e50f3

Browse files
authored
Merge pull request #96 from pharaxe/appname-missing-fix
reveal to user thrown error for issue #95
2 parents 8b67dd6 + 8370085 commit 28e50f3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/angular-playground/cli/src/serve-angular-cli.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import { spawn, SpawnOptions, ChildProcess } from 'child_process';
33
import { Config } from './configure';
44

55
export async function serveAngularCli(config: Config) {
6-
const args: string[] = configureArguments(config);
6+
let args: string[];
7+
8+
try {
9+
args = configureArguments(config);
10+
} catch (err) {
11+
console.error(err.message);
12+
process.exit(1);
13+
}
14+
715
const ngServe = spawn('node', args);
816

917
const write = (handler: any, data: any) => {

0 commit comments

Comments
 (0)