Skip to content

Commit

Permalink
fix(cli) Passes proper options for Ergo validation
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed May 1, 2021
1 parent 8784486 commit a76d1af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/concerto-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ require('yargs')
})
.catch((err) => {
Logger.info('Input is invalid');
Logger.error(err.message);
Logger.error(err);
});
} catch (err){
Logger.error(err.message);
Logger.error(err);
return;
}
})
Expand Down
4 changes: 2 additions & 2 deletions packages/concerto-cli/lib/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ class Commands {
concerto.validate(json);
} else {
const factory = new Factory(modelManager);
const serializer = new Serializer(factory, modelManager, options);
const serializer = new Serializer(factory, modelManager);

const object = serializer.fromJSON(json, options);
const object = serializer.fromJSON(json);
return JSON.stringify(serializer.toJSON(object, options));
}
}
Expand Down

0 comments on commit a76d1af

Please sign in to comment.