Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Commit

Permalink
Modify the error message for "Failed to hook "
Browse files Browse the repository at this point in the history
This draws on hackFunc of Add Bookmark Here ²
  • Loading branch information
yfdyh000 committed Feb 3, 2017
1 parent 1631871 commit a88bcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/content/tulib.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function TU_hookCode(aStr) {
return object[method] = TU_hookFunc.apply(this, Array.concat(object[method], Array.slice(arguments, 1)));
}
catch (e) {
Components.utils.reportError("Failed to hook " + aStr + ": " + e.message);
Components.utils.reportError("Failed to hook " + aStr + "\n---\n"+(new Error()).stack);
}
}

Expand Down Expand Up @@ -55,7 +55,7 @@ function TU_hookSetter(aStr) {
return mySetter;
}
catch (e) {
Components.utils.reportError("Failed to hook " + aStr + ": " + e.message);
Components.utils.reportError("Failed to hook " + aStr + "\n---\n"+(new Error()).stack);
}
}

Expand Down

0 comments on commit a88bcd6

Please sign in to comment.