{"action":"opened","issue":{"url":"https://api.github.com/repos/groupon/shared-store/issues/8","labels_url":"https://api.github.com/repos/groupon/shared-store/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/groupon/shared-store/issues/8/comments","events_url":"https://api.github.com/repos/groupon/shared-store/issues/8/events","html_url":"https://github.com/groupon/shared-store/issues/8","id":63342617,"number":8,"title":"Should the throwing observable bubble up to `store.init(err)`?","user":{"login":"khoomeister","id":681288,"avatar_url":"https://avatars.githubusercontent.com/u/681288?v=3","gravatar_id":"","url":"https://api.github.com/users/khoomeister","html_url":"https://github.com/khoomeister","followers_url":"https://api.github.com/users/khoomeister/followers","following_url":"https://api.github.com/users/khoomeister/following{/other_user}","gists_url":"https://api.github.com/users/khoomeister/gists{/gist_id}","starred_url":"https://api.github.com/users/khoomeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khoomeister/subscriptions","organizations_url":"https://api.github.com/users/khoomeister/orgs","repos_url":"https://api.github.com/users/khoomeister/repos","events_url":"https://api.github.com/users/khoomeister/events{/privacy}","received_events_url":"https://api.github.com/users/khoomeister/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-21T01:26:15Z","updated_at":"2015-03-21T01:26:15Z","closed_at":null,"body":"```javascript\r\n'use strict';\r\n\r\nvar SharedStore = require('shared-store');\r\nvar rx = require('rx');\r\n\r\nvar store = new SharedStore({\r\n  temp: 'tmp/config',\r\n  loader: rx.Observable.throw(new Error('This throws!'))\r\n});\r\n\r\nstore.init(function(error, config) {\r\n  console.log('In init');\r\n  if (error) {\r\n    console.log('Yay, I got an error!');\r\n    console.log(error);\r\n  }\r\n});\r\n```\r\n\r\nThis is the output:\r\n```\r\nApplication crashed with current config. Resetting cache.\r\nTrying to remove cache files []\r\nCache reset successful.\r\n\r\n/Users/chkhoo/khoomeister/shared-store-playground/node_modules/shared-store/node_modules/rx/dist/rx.js:580\r\n    throw e;\r\n          ^\r\nError: This throws!\r\n    at Object.<anonymous> (/Users/chkhoo/khoomeister/shared-store-playground/index.js:8:31)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n    at node.js:935:3\r\n```\r\n\r\nThe exception never makes it to the `init` callback.  Is this a bug or intended behavior?"}}