Skip to content

Commit

Permalink
fix: log error message only on build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dherges committed Dec 12, 2017
1 parent 6445316 commit 51643e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ng-packagr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export async function createNgPackage(opts: CliArguments): Promise<void> {
} catch (error) {
// Report error messages and throw the error further up
log.error(error);
throw error;
} finally {
if (ngPackage) {
log.info(`Build failed. The working directory was not pruned. Files are stored at {ngPackage.workingDirectory}.`);
}

throw error;
}
}

0 comments on commit 51643e1

Please sign in to comment.