{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/10183","labels_url":"https://api.github.com/repos/golang/go/issues/10183/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/10183/comments","events_url":"https://api.github.com/repos/golang/go/issues/10183/events","html_url":"https://github.com/golang/go/issues/10183","id":62384552,"number":10183,"title":"playground: bad error message in Go Playground when package != \"main\"","user":{"login":"ImJasonH","id":210737,"avatar_url":"https://avatars.githubusercontent.com/u/210737?v=3","gravatar_id":"","url":"https://api.github.com/users/ImJasonH","html_url":"https://github.com/ImJasonH","followers_url":"https://api.github.com/users/ImJasonH/followers","following_url":"https://api.github.com/users/ImJasonH/following{/other_user}","gists_url":"https://api.github.com/users/ImJasonH/gists{/gist_id}","starred_url":"https://api.github.com/users/ImJasonH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImJasonH/subscriptions","organizations_url":"https://api.github.com/users/ImJasonH/orgs","repos_url":"https://api.github.com/users/ImJasonH/repos","events_url":"https://api.github.com/users/ImJasonH/events{/privacy}","received_events_url":"https://api.github.com/users/ImJasonH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"adg","id":8446613,"avatar_url":"https://avatars.githubusercontent.com/u/8446613?v=3","gravatar_id":"","url":"https://api.github.com/users/adg","html_url":"https://github.com/adg","followers_url":"https://api.github.com/users/adg/followers","following_url":"https://api.github.com/users/adg/following{/other_user}","gists_url":"https://api.github.com/users/adg/gists{/gist_id}","starred_url":"https://api.github.com/users/adg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adg/subscriptions","organizations_url":"https://api.github.com/users/adg/orgs","repos_url":"https://api.github.com/users/adg/repos","events_url":"https://api.github.com/users/adg/events{/privacy}","received_events_url":"https://api.github.com/users/adg/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/6","html_url":"https://github.com/golang/go/milestones/Unplanned","labels_url":"https://api.github.com/repos/golang/go/milestones/6/labels","id":1055141,"number":6,"title":"Unplanned","description":"No plan to fix in any specific release.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":1140,"closed_issues":169,"state":"open","created_at":"2015-04-06T20:47:19Z","updated_at":"2015-11-25T14:59:30Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":4,"created_at":"2015-03-17T12:37:04Z","updated_at":"2015-11-25T15:04:27Z","closed_at":null,"body":"http://play.golang.org/p/gnZZOxKTko (or just use the standard Playground template and change `package main` to `package foo`)\r\n\r\nThe error message is confusing and seems like an internal error:\r\n\r\n```\r\nError while loading \"/tmp/sandbox046656083/a.out\": Cannot open NaCl module file\r\nUsing the wrong type of nexe (nacl-x86-32 on an x86-64 or vice versa)\r\nor a corrupt nexe file may be responsible for this error.\r\n```\r\n\r\nA better error message would hint that the package must be `main`, like the error message when a `func main()` is missing."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/159634517","html_url":"https://github.com/golang/go/issues/10183#issuecomment-159634517","issue_url":"https://api.github.com/repos/golang/go/issues/10183","id":159634517,"user":{"login":"andrewaustin","id":166746,"avatar_url":"https://avatars.githubusercontent.com/u/166746?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewaustin","html_url":"https://github.com/andrewaustin","followers_url":"https://api.github.com/users/andrewaustin/followers","following_url":"https://api.github.com/users/andrewaustin/following{/other_user}","gists_url":"https://api.github.com/users/andrewaustin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewaustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewaustin/subscriptions","organizations_url":"https://api.github.com/users/andrewaustin/orgs","repos_url":"https://api.github.com/users/andrewaustin/repos","events_url":"https://api.github.com/users/andrewaustin/events{/privacy}","received_events_url":"https://api.github.com/users/andrewaustin/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T15:04:27Z","updated_at":"2015-11-25T15:04:27Z","body":"This was fixed in https://github.com/golang/playground/commit/c81e550ea6345d3dba3e51f69cc2c23cf8eefe35\r\n\r\nSee http://play.golang.org/p/gnZZOxKTko. \r\n\r\nYou can close this issue."}}