Use deprecate.warn instead of deprecate.log

This commit is contained in:
Kevin Sawicki 2016-03-18 09:02:58 -07:00
parent 737ffd8d7c
commit 7668c1ea0b

View file

@ -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;