{"action":"closed","issue":{"url":"https://api.github.com/repos/owais/django-webpack-loader/issues/69","repository_url":"https://api.github.com/repos/owais/django-webpack-loader","labels_url":"https://api.github.com/repos/owais/django-webpack-loader/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/owais/django-webpack-loader/issues/69/comments","events_url":"https://api.github.com/repos/owais/django-webpack-loader/issues/69/events","html_url":"https://github.com/owais/django-webpack-loader/issues/69","id":169786959,"number":69,"title":"KeyError in loader.py upon error.","user":{"login":"jleclanche","id":235410,"avatar_url":"https://avatars.githubusercontent.com/u/235410?v=3","gravatar_id":"","url":"https://api.github.com/users/jleclanche","html_url":"https://github.com/jleclanche","followers_url":"https://api.github.com/users/jleclanche/followers","following_url":"https://api.github.com/users/jleclanche/following{/other_user}","gists_url":"https://api.github.com/users/jleclanche/gists{/gist_id}","starred_url":"https://api.github.com/users/jleclanche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleclanche/subscriptions","organizations_url":"https://api.github.com/users/jleclanche/orgs","repos_url":"https://api.github.com/users/jleclanche/repos","events_url":"https://api.github.com/users/jleclanche/events{/privacy}","received_events_url":"https://api.github.com/users/jleclanche/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-07T08:52:40Z","updated_at":"2016-08-07T11:10:14Z","closed_at":"2016-08-07T11:10:14Z","body":"`get_bundle` defines the following:\r\n\r\n```py\r\n            error = u\"\"\"\r\n            {error} in {file}\r\n            {message}\r\n            \"\"\".format(**assets)\r\n```\r\n\r\nHowever, upon some webpack errors, my `assets` dict contained the following:\r\n\r\n```py\r\n{\r\n'file': '', \r\n'message': '(1,24): error TS2307: Cannot find module 'react'.', \r\n'status': 'error'\r\n}\r\n```\r\n\r\nTherefore, django-webpack-loader crashed, shadowing the root cause of the crash. Was quite frustrating.\r\nI can PR a simple fix that stubs `error` if it's not in there, but it seems like it's very much supposed to be in there."}}
{"actor":{"display_login":"owais"}}