Guest User

Untitled

a guest
Dec 6th, 2015
22
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Client:
  2.  
  3. window.onerror = function(msg, url, line, col, error) {
  4.    Client.sendEvent('error', {msg: msg, url: url, line: line, col: col, error: error});
  5.    return true;
  6. };
  7.  
  8. //Server:
  9.  
  10. this.onEventReceived = function(user, key, data)
  11.     {
  12.         if(key == 'error') {
  13.             KnuddelsServer.getDefaultLogger().error("Client-Error from " + user.getNick() + ": " + JSON.stringify(data));
  14.         }
  15.     };
RAW Paste Data