{"action":"opened","issue":{"url":"https://api.github.com/repos/LuaLanes/lanes/issues/129","repository_url":"https://api.github.com/repos/LuaLanes/lanes","labels_url":"https://api.github.com/repos/LuaLanes/lanes/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/LuaLanes/lanes/issues/129/comments","events_url":"https://api.github.com/repos/LuaLanes/lanes/issues/129/events","html_url":"https://github.com/LuaLanes/lanes/issues/129","id":235064382,"number":129,"title":"Abort on non-string error in a lane","user":{"login":"mpeterv","id":6032370,"avatar_url":"https://avatars2.githubusercontent.com/u/6032370?v=3","gravatar_id":"","url":"https://api.github.com/users/mpeterv","html_url":"https://github.com/mpeterv","followers_url":"https://api.github.com/users/mpeterv/followers","following_url":"https://api.github.com/users/mpeterv/following{/other_user}","gists_url":"https://api.github.com/users/mpeterv/gists{/gist_id}","starred_url":"https://api.github.com/users/mpeterv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpeterv/subscriptions","organizations_url":"https://api.github.com/users/mpeterv/orgs","repos_url":"https://api.github.com/users/mpeterv/repos","events_url":"https://api.github.com/users/mpeterv/events{/privacy}","received_events_url":"https://api.github.com/users/mpeterv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-11T13:06:22Z","updated_at":"2017-06-11T13:06:22Z","closed_at":null,"body":"```lua\r\nlocal lanes = require \"lanes\"\r\nlanes.configure()\r\nlanes.gen(\"*\", error)()\r\n```\r\n\r\nThis throws `nil` in a lane and causes an abort due to an [assertion](https://github.com/LuaLanes/lanes/blob/0454f240bd443c75cf2a63544a6552a56ed132ff/src/lanes.c#L1944) that seems to check that the error message is a string.\r\n\r\nAs a workaround I'll wrap lane function in xpcall and turn errors into return values, but it would be convenient if non-string error objects, tables in particular, were properly handled."}}
{"actor":{"display_login":"mpeterv"}}