{"action":"created","issue":{"url":"https://api.github.com/repos/mrSkortch/MissionScriptingTools/issues/33","repository_url":"https://api.github.com/repos/mrSkortch/MissionScriptingTools","labels_url":"https://api.github.com/repos/mrSkortch/MissionScriptingTools/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/mrSkortch/MissionScriptingTools/issues/33/comments","events_url":"https://api.github.com/repos/mrSkortch/MissionScriptingTools/issues/33/events","html_url":"https://github.com/mrSkortch/MissionScriptingTools/issues/33","id":182881000,"number":33,"title":"Show errors thrown from a function invoked by `mist.scheduleFunction` as popup?","user":{"login":"birgersp","id":5260237,"avatar_url":"https://avatars.githubusercontent.com/u/5260237?v=3","gravatar_id":"","url":"https://api.github.com/users/birgersp","html_url":"https://github.com/birgersp","followers_url":"https://api.github.com/users/birgersp/followers","following_url":"https://api.github.com/users/birgersp/following{/other_user}","gists_url":"https://api.github.com/users/birgersp/gists{/gist_id}","starred_url":"https://api.github.com/users/birgersp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birgersp/subscriptions","organizations_url":"https://api.github.com/users/birgersp/orgs","repos_url":"https://api.github.com/users/birgersp/repos","events_url":"https://api.github.com/users/birgersp/events{/privacy}","received_events_url":"https://api.github.com/users/birgersp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-13T19:39:22Z","updated_at":"2016-10-18T23:45:51Z","closed_at":null,"body":"Hello,\r\n\r\nI've noticed that functions invoked by `mist.scheduleFunction` are \"lost\" somewhere. Consider this script:\r\n\r\n```\r\nlocal function throwSomeError()\r\n  local obj = {}\r\n  print(obj.x.y.z)\r\nend\r\n\r\nthrowSomeError()\r\n```\r\n\r\nRunning this code will give me [a popup error like this](http://i.imgur.com/Py7O93J.png)\r\n\r\nHowever, the following code yields no such error:\r\n\r\n```\r\nlocal function throwSomeError()\r\n  local obj = {}\r\n  print(obj.x.y.z)\r\nend\r\n\r\nmist.scheduleFunction(throwSomeError,nil,timer.getTime()+1)\r\n```\r\n\r\nBut of course, the function is erroneous, and in my opinion I should get an error (somewhere) so I can fix it.\r\n\r\nCheers!"},"comment":{"url":"https://api.github.com/repos/mrSkortch/MissionScriptingTools/issues/comments/254671325","html_url":"https://github.com/mrSkortch/MissionScriptingTools/issues/33#issuecomment-254671325","issue_url":"https://api.github.com/repos/mrSkortch/MissionScriptingTools/issues/33","id":254671325,"user":{"login":"mrSkortch","id":8334336,"avatar_url":"https://avatars.githubusercontent.com/u/8334336?v=3","gravatar_id":"","url":"https://api.github.com/users/mrSkortch","html_url":"https://github.com/mrSkortch","followers_url":"https://api.github.com/users/mrSkortch/followers","following_url":"https://api.github.com/users/mrSkortch/following{/other_user}","gists_url":"https://api.github.com/users/mrSkortch/gists{/gist_id}","starred_url":"https://api.github.com/users/mrSkortch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrSkortch/subscriptions","organizations_url":"https://api.github.com/users/mrSkortch/orgs","repos_url":"https://api.github.com/users/mrSkortch/repos","events_url":"https://api.github.com/users/mrSkortch/events{/privacy}","received_events_url":"https://api.github.com/users/mrSkortch/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T23:45:51Z","updated_at":"2016-10-18T23:45:51Z","body":"Yeah that could be made an option. But I'd probably have it default set to off. I'm thinking of something that could be used to set whether different Logger types push a notification or not. So you could set the mist Logger functions built in to automatically push the notification or for your own Loggers. Maybe even utilize the in game trigger messages for a form of notifications."}}
{"actor":{"display_login":"mrSkortch"}}