1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 12:55:47 +01:00

Use WarningMsg rather than ErrorMsg for deprecation warnings.

This commit is contained in:
Kris Maglione
2011-01-22 05:11:04 -05:00
parent 3f0901ee2a
commit c889e7cd22
3 changed files with 13 additions and 3 deletions

View File

@@ -274,7 +274,7 @@ function deprecated(alternative, fn) {
"";
let filename = (frame.filename || "unknown").replace(/.* -> /, "");
if (!set.add(deprecatedMethod.seen, filename))
util.dactyl(fn).echoerr(
util.dactyl(fn).warn(
util.urlPath(filename) + ":" + frame.lineNumber + ": " +
obj + (fn.name || name) + " is deprecated: Please use " + alternative + " instead");
return func.apply(this, arguments);

View File

@@ -174,7 +174,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
let msg = "Warning: setting preference " + name + ", but it's changed from its default value.";
if (message)
msg = template.linkifyHelp(msg + " " + message);
util.dactyl.echomsg(msg);
util.dactyl.warn(msg);
}
},