mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 10:34:11 +01:00
Death to E4X and stuff.
This commit is contained in:
@@ -418,7 +418,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
if (isObject(str) && "echoerr" in str)
|
||||
str = str.echoerr;
|
||||
else if (isinstance(str, ["Error", FailedAssertion]) && str.fileName)
|
||||
str = <>{str.fileName.replace(/^.* -> /, "")}: {str.lineNumber}: {str}</>;
|
||||
str = util.Magic([str.fileName.replace(/^.* -> /, ""), ": ", str.lineNumber, ": ", str].join(""));
|
||||
|
||||
if (options["errorbells"])
|
||||
dactyl.beep();
|
||||
|
||||
Reference in New Issue
Block a user