Skip to content

Commit

Permalink
fix edge case with non existing options.core
Browse files Browse the repository at this point in the history
  • Loading branch information
robhrt7 committed Aug 15, 2015
1 parent 6ef3924 commit ee85011
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/loadOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var legacyOptionsChecker = function(options, fileName){
var haveCommon = options.core && options.core.common;

// Server options
options.core = options.core || {};
options.core.server = options.core.server || {};
if (haveCommon && options.core.common.port) {
if (!silent) legacyOptionsWarn('options.core.common.port', 'options.core.server.port', fileName);
Expand Down

0 comments on commit ee85011

Please sign in to comment.