mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-14 15:54:11 +00:00
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…
x
Reference in New Issue
Block a user