Improve deprecated message on webPreferences options

This commit is contained in:
Kevin Sawicki 2016-03-17 13:34:30 -07:00
parent c31882749d
commit 737ffd8d7c
2 changed files with 2 additions and 2 deletions

View file

@ -280,7 +280,7 @@ const checkForDeprecatedOptions = function(options) {
}
if (webPreferenceOption) {
try {
deprecate.log(`Setting ${webPreferenceOption} on options is deprecated. Set it on options.webPreferences instead.`);
deprecate.log(`options.${webPreferenceOption} is deprecated. Use options.webPreferences.${webPreferenceOption} instead.`);
} catch (error) {
// Return error message so it can be rethrown via C++
return error.message;