mirror of https://github.com/embarklabs/embark.git
suggest parent name instead of same contract
This commit is contained in:
parent
25d99bcf2f
commit
d2ccfa3145
|
@ -100,7 +100,7 @@ class ContractsManager {
|
|||
|
||||
if (parentContract === undefined) {
|
||||
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) {
|
||||
self.logger.warn('did you mean "' + suggestion + '"?');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue