diff --git a/lib/browser/api/browser-window.js b/lib/browser/api/browser-window.js index 87077ffd2d94..ed6cbc4b80a7 100644 --- a/lib/browser/api/browser-window.js +++ b/lib/browser/api/browser-window.js @@ -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;