"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular/cli/models/architect-command.ts" between
angular-cli-12.0.3.tar.gz and angular-cli-12.0.4.tar.gz

About: Angular CLI is a command line interface for Angular.

architect-command.ts  (angular-cli-12.0.3):architect-command.ts  (angular-cli-12.0.4)
skipping to change at line 284 skipping to change at line 284
return result; return result;
} else { } else {
return await this.runSingleTarget(targetSpec, extra); return await this.runSingleTarget(targetSpec, extra);
} }
} catch (e) { } catch (e) {
if (e instanceof schema.SchemaValidationException) { if (e instanceof schema.SchemaValidationException) {
const newErrors: schema.SchemaValidatorError[] = []; const newErrors: schema.SchemaValidatorError[] = [];
for (const schemaError of e.errors) { for (const schemaError of e.errors) {
if (schemaError.keyword === 'additionalProperties') { if (schemaError.keyword === 'additionalProperties') {
const unknownProperty = schemaError.params.additionalProperty; const unknownProperty = schemaError.params?.additionalProperty;
if (unknownProperty in options) { if (unknownProperty in options) {
const dashes = unknownProperty.length === 1 ? '-' : '--'; const dashes = unknownProperty.length === 1 ? '-' : '--';
this.logger.fatal(`Unknown option: '${dashes}${unknownProperty}'`) ; this.logger.fatal(`Unknown option: '${dashes}${unknownProperty}'`) ;
continue; continue;
} }
} }
newErrors.push(schemaError); newErrors.push(schemaError);
} }
if (newErrors.length > 0) { if (newErrors.length > 0) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)