{"action":"created","issue":{"url":"https://api.github.com/repos/jeremyevans/sequel/issues/969","labels_url":"https://api.github.com/repos/jeremyevans/sequel/issues/969/labels{/name}","comments_url":"https://api.github.com/repos/jeremyevans/sequel/issues/969/comments","events_url":"https://api.github.com/repos/jeremyevans/sequel/issues/969/events","html_url":"https://github.com/jeremyevans/sequel/pull/969","id":60754889,"number":969,"title":"Improve error message of failed database extension","user":{"login":"janko-m","id":795488,"avatar_url":"https://avatars.githubusercontent.com/u/795488?v=3","gravatar_id":"","url":"https://api.github.com/users/janko-m","html_url":"https://github.com/janko-m","followers_url":"https://api.github.com/users/janko-m/followers","following_url":"https://api.github.com/users/janko-m/following{/other_user}","gists_url":"https://api.github.com/users/janko-m/gists{/gist_id}","starred_url":"https://api.github.com/users/janko-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janko-m/subscriptions","organizations_url":"https://api.github.com/users/janko-m/orgs","repos_url":"https://api.github.com/users/janko-m/repos","events_url":"https://api.github.com/users/janko-m/events{/privacy}","received_events_url":"https://api.github.com/users/janko-m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T00:53:18Z","updated_at":"2015-03-12T03:13:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jeremyevans/sequel/pulls/969","html_url":"https://github.com/jeremyevans/sequel/pull/969","diff_url":"https://github.com/jeremyevans/sequel/pull/969.diff","patch_url":"https://github.com/jeremyevans/sequel/pull/969.patch"},"body":"When I first got the error, I couldn't quite figure out how to fix the problem. I think this error mostly happens when an extension is required on the wrong level. This error happened to me because I did this:\r\n\r\n```rb\r\nDB.extension :pg_json, :pg_json_ops\r\n```"},"comment":{"url":"https://api.github.com/repos/jeremyevans/sequel/issues/comments/78416707","html_url":"https://github.com/jeremyevans/sequel/pull/969#issuecomment-78416707","issue_url":"https://api.github.com/repos/jeremyevans/sequel/issues/969","id":78416707,"user":{"login":"jeremyevans","id":3846,"avatar_url":"https://avatars.githubusercontent.com/u/3846?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyevans","html_url":"https://github.com/jeremyevans","followers_url":"https://api.github.com/users/jeremyevans/followers","following_url":"https://api.github.com/users/jeremyevans/following{/other_user}","gists_url":"https://api.github.com/users/jeremyevans/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyevans/subscriptions","organizations_url":"https://api.github.com/users/jeremyevans/orgs","repos_url":"https://api.github.com/users/jeremyevans/repos","events_url":"https://api.github.com/users/jeremyevans/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyevans/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T03:13:36Z","updated_at":"2015-03-12T03:13:36Z","body":"Thanks for the patch.  I agree that this change makes the error more obvious.  I'll try to get this tested and merged tomorrow."}}