fix(@embark/specialconfig): fix undefined contract name in onDeploy

This commit is contained in:
Jonathan Rainville 2019-04-29 16:19:42 -04:00
parent c7c923dec2
commit 7eb85f0fbe
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ class SpecialConfigs {
await contract.onDeploy(dependencies);
cb();
} catch (err) {
return cb(new Error(`Error when registering onDeploy hook for ${contract.name}: ${err.message}`));
return cb(new Error(`Error when registering onDeploy hook for ${contract.className}: ${err.message}`));
}
} else {
let onDeployCmds = contract.onDeploy;
@ -242,7 +242,7 @@ class SpecialConfigs {
params.shouldDeploy = await contract.deployIf(dependencies);
cb(null, params);
} catch (err) {
return cb(new Error(`Error when registering deployIf hook for ${contract.name}: ${err.message}`));
return cb(new Error(`Error when registering deployIf hook for ${contract.className}: ${err.message}`));
}
} else {