1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 16:12:26 +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

@@ -303,7 +303,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
commandline.echo(str, commandline.HL_NORMAL, flags);
},
// TODO: Vim replaces unprintable characters in echoerr/echomsg
/**
* Outputs an error message to the command line.
*
@@ -327,6 +326,17 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
commandline.echo(str, commandline.HL_ERRORMSG, flags);
},
/**
* Outputs a warning message to the command line.
*
* @param {string} str The message to output.
* @param {number} flags These control the multi-line message behavior.
* See {@link CommandLine#echo}.
*/
warn: function warn(str, flags) {
commandline.echo(str, "WarningMsg", flags | commandline.APPEND_TO_MESSAGES);
},
// TODO: add proper level constants
/**
* Outputs an information message to the command line.