suggest parent name instead of same contract

This commit is contained in:
Iuri Matias 2017-12-20 09:41:12 -05:00
parent 25d99bcf2f
commit d2ccfa3145
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class ContractsManager {
if (parentContract === undefined) { if (parentContract === undefined) {
self.logger.error(className + ": couldn't find instanceOf contract " + parentContractName); self.logger.error(className + ": couldn't find instanceOf contract " + parentContractName);
let suggestion = utils.proposeAlternative(className, dictionary, [className, parentContractName]); let suggestion = utils.proposeAlternative(parentContractName, dictionary, [className, parentContractName]);
if (suggestion) { if (suggestion) {
self.logger.warn('did you mean "' + suggestion + '"?'); self.logger.warn('did you mean "' + suggestion + '"?');
} }