http://trac.tiddlywiki.org/changeset/12245

FND
2010-06-29 06:53:28 -0700 (Tue, 29 Jun 2010)
164
prevented exceptions from being swallowed in loadPlugins

if console.log is available (natively), the exception object is exposed
there for inspection

ticket #1236

---------------

U   Trunk/core/js/main.js

---------------

Modified: Trunk/core/js/main.js
===================================================================
--- Trunk/core/js/main.js       2010-06-29 08:14:03 UTC (rev 12244)
+++ Trunk/core/js/main.js       2010-06-29 13:53:28 UTC (rev 12245)
@@ -172,6 +172,9 @@
                                } catch(ex) {
                                        
p.log.push(config.messages.pluginError.format([exceptionText(ex)]));
                                        p.error = true;
+                                       if(!console.tiddlywiki) {
+                                               console.log("error evaluating " 
+ tiddler.title, ex);
+                                       }
                                }
                                pluginInfo.startupTime = String((new Date()) - 
startTime) + "ms";
                        } else {

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to