mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use deprecate.warn instead of deprecate.log
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user