Use deprecate.warn instead of deprecate.log
This commit is contained in:
parent
737ffd8d7c
commit
7668c1ea0b
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ const checkForDeprecatedOptions = function(options) {
|
|||
}
|
||||
if (webPreferenceOption) {
|
||||
try {
|
||||
deprecate.log(`options.${webPreferenceOption} is deprecated. Use options.webPreferences.${webPreferenceOption} instead.`);
|
||||
deprecate.warn(`options.${webPreferenceOption}`, `options.webPreferences.${webPreferenceOption}`);
|
||||
} catch (error) {
|
||||
// Return error message so it can be rethrown via C++
|
||||
return error.message;
|
||||
|
|
Loading…
Reference in a new issue