Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(nsis-gen): set warning values instead of throwing exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
evshiron committed Apr 2, 2017
1 parent 38f3748 commit f79ed55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/nsis-gen/NsisComposer.ts
Expand Up @@ -35,23 +35,23 @@ export class NsisComposer {
constructor(protected options: INsisComposerOptions) {

if(!this.options.appName) {
throw new Error('ERROR_NO_APPNAME');
this.options.appName = 'NO_APPNAME';
}

if(!this.options.companyName) {
throw new Error('ERROR_NO_COMPANYNAME');
this.options.companyName = 'NO_COMPANYNAME';
}

if(!this.options.description) {
throw new Error('ERROR_NO_DESCRIPTION');
this.options.description = 'NO_DESCRIPTION';
}

if(!this.options.version) {
throw new Error('ERROR_NO_VERSION');
this.options.version = 'NO_VERSION';
}

if(!this.options.copyright) {
throw new Error('ERROR_NO_COPYRIGHT');
this.options.copyright = 'ERROR_NO_COPYRIGHT';
}

this.options.compression = this.options.compression || 'lzma';
Expand Down

0 comments on commit f79ed55

Please sign in to comment.