{"action":"created","issue":{"url":"https://api.github.com/repos/HerculesWS/Hercules/issues/868","labels_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/868/labels{/name}","comments_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/868/comments","events_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/868/events","html_url":"https://github.com/HerculesWS/Hercules/pull/868","id":117108451,"number":868,"title":"Fix various ShowWarning that doesn't tell the source of the error","user":{"login":"AnnieRuru","id":6211477,"avatar_url":"https://avatars.githubusercontent.com/u/6211477?v=3","gravatar_id":"","url":"https://api.github.com/users/AnnieRuru","html_url":"https://github.com/AnnieRuru","followers_url":"https://api.github.com/users/AnnieRuru/followers","following_url":"https://api.github.com/users/AnnieRuru/following{/other_user}","gists_url":"https://api.github.com/users/AnnieRuru/gists{/gist_id}","starred_url":"https://api.github.com/users/AnnieRuru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnnieRuru/subscriptions","organizations_url":"https://api.github.com/users/AnnieRuru/orgs","repos_url":"https://api.github.com/users/AnnieRuru/repos","events_url":"https://api.github.com/users/AnnieRuru/events{/privacy}","received_events_url":"https://api.github.com/users/AnnieRuru/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HerculesWS/Hercules/labels/component:core:scriptengine","name":"component:core:scriptengine","color":"803050"},{"url":"https://api.github.com/repos/HerculesWS/Hercules/labels/status:inprogress","name":"status:inprogress","color":"bfd4f2"},{"url":"https://api.github.com/repos/HerculesWS/Hercules/labels/type:enhancement","name":"type:enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-16T11:54:10Z","updated_at":"2015-12-10T03:54:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HerculesWS/Hercules/pulls/868","html_url":"https://github.com/HerculesWS/Hercules/pull/868","diff_url":"https://github.com/HerculesWS/Hercules/pull/868.diff","patch_url":"https://github.com/HerculesWS/Hercules/pull/868.patch"},"body":"`return true;`\r\nmeans its ok.\r\n\r\n`return false;`\r\nmeans the script will still run, nothing wrong, but it just report the source of the error\r\n\r\nif want to halt the script, use `st->state = END;`\r\n\r\nif want to report the source of error without using return false, use `script->reportsrc(st)`"},"comment":{"url":"https://api.github.com/repos/HerculesWS/Hercules/issues/comments/163479423","html_url":"https://github.com/HerculesWS/Hercules/pull/868#issuecomment-163479423","issue_url":"https://api.github.com/repos/HerculesWS/Hercules/issues/868","id":163479423,"user":{"login":"dastgir","id":2889931,"avatar_url":"https://avatars.githubusercontent.com/u/2889931?v=3","gravatar_id":"","url":"https://api.github.com/users/dastgir","html_url":"https://github.com/dastgir","followers_url":"https://api.github.com/users/dastgir/followers","following_url":"https://api.github.com/users/dastgir/following{/other_user}","gists_url":"https://api.github.com/users/dastgir/gists{/gist_id}","starred_url":"https://api.github.com/users/dastgir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dastgir/subscriptions","organizations_url":"https://api.github.com/users/dastgir/orgs","repos_url":"https://api.github.com/users/dastgir/repos","events_url":"https://api.github.com/users/dastgir/events{/privacy}","received_events_url":"https://api.github.com/users/dastgir/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T03:54:23Z","updated_at":"2015-12-10T03:54:23Z","body":"Seems good to be merged.\r\n@4144 "}}