Commit 9e55f4aa authored by Julien Muchembled's avatar Julien Muchembled

gadget: catch errors from render()

parent 40fae545
...@@ -105,7 +105,12 @@ ...@@ -105,7 +105,12 @@
"key": sub_key, "key": sub_key,
"value": sub_value "value": sub_value
} }
) ).push(undefined, function (error) {
/* TODO: Highlight the gadget element with a small colored
* error message. Clicking on the element could unroll
* more information like the traceback. */
console.log(error);
  • To display the error like any other thrown errors in the console (red highlight), you can use console.error instead of console.log.

Please register or sign in to reply
})
); );
} }
if (gadget_attributes[i].sandbox === "iframe") { if (gadget_attributes[i].sandbox === "iframe") {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts20545059.65</string> </value> <value> <string>ts64799067.07</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>7063</int> </value> <value> <int>7383</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment