mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-02 19:17:14 +00:00
add localisable strings for Internal JavaScript Error
This commit is contained in:
@@ -126,8 +126,8 @@ Display an error and exit
|
||||
*/
|
||||
$tw.utils.error = function(err) {
|
||||
// Prepare the error message
|
||||
var errHeading = "Internal JavaScript Error",
|
||||
promptMsg = "Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser";
|
||||
var errHeading = ( $tw.language == undefined ? "Internal JavaScript Error" : $tw.language.getString("InternalJavaScriptError/Title") ),
|
||||
promptMsg = ( $tw.language == undefined ? "Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser" : $tw.language.getString("InternalJavaScriptError/Hint") );
|
||||
// Log the error to the console
|
||||
console.error($tw.node ? "\x1b[1;31m" + err + "\x1b[0m" : err);
|
||||
if($tw.browser && !$tw.node) {
|
||||
|
||||
Reference in New Issue
Block a user