Improve error handling

Change-Id: I1f54cf9cd4770d6602f70036cf0e27c9ede8c893
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 4f8c41f..1666588 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -73,7 +73,11 @@
     if (KorAP.Notifications !== undefined) {
       var n = KorAP.Notifications;
       for (var i = 0; i < n.length; i++) {
-        alertifyClass.log(n[i][1], n[i][0], 10000);
+        var msg = n[i][1];
+        if (n[i][2]) {
+          msg += '<code class="src">'+n[i][2]+'</code>';
+        };
+        alertifyClass.log(msg, n[i][0], 10000);
       };
     };