{"action":"closed","issue":{"url":"https://api.github.com/repos/fabric-composer/fabric-composer/issues/377","repository_url":"https://api.github.com/repos/fabric-composer/fabric-composer","labels_url":"https://api.github.com/repos/fabric-composer/fabric-composer/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/fabric-composer/fabric-composer/issues/377/comments","events_url":"https://api.github.com/repos/fabric-composer/fabric-composer/issues/377/events","html_url":"https://github.com/fabric-composer/fabric-composer/issues/377","id":212535207,"number":377,"title":"Sensible error messages should be shown when listing a non-existing network","user":{"login":"sanjay-saxena","id":7605221,"avatar_url":"https://avatars2.githubusercontent.com/u/7605221?v=3","gravatar_id":"","url":"https://api.github.com/users/sanjay-saxena","html_url":"https://github.com/sanjay-saxena","followers_url":"https://api.github.com/users/sanjay-saxena/followers","following_url":"https://api.github.com/users/sanjay-saxena/following{/other_user}","gists_url":"https://api.github.com/users/sanjay-saxena/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjay-saxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjay-saxena/subscriptions","organizations_url":"https://api.github.com/users/sanjay-saxena/orgs","repos_url":"https://api.github.com/users/sanjay-saxena/repos","events_url":"https://api.github.com/users/sanjay-saxena/events{/privacy}","received_events_url":"https://api.github.com/users/sanjay-saxena/received_events","type":"User","site_admin":false},"labels":[{"id":527252486,"url":"https://api.github.com/repos/fabric-composer/fabric-composer/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"mbwhite","id":6673453,"avatar_url":"https://avatars2.githubusercontent.com/u/6673453?v=3","gravatar_id":"","url":"https://api.github.com/users/mbwhite","html_url":"https://github.com/mbwhite","followers_url":"https://api.github.com/users/mbwhite/followers","following_url":"https://api.github.com/users/mbwhite/following{/other_user}","gists_url":"https://api.github.com/users/mbwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/mbwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbwhite/subscriptions","organizations_url":"https://api.github.com/users/mbwhite/orgs","repos_url":"https://api.github.com/users/mbwhite/repos","events_url":"https://api.github.com/users/mbwhite/events{/privacy}","received_events_url":"https://api.github.com/users/mbwhite/received_events","type":"User","site_admin":false},"assignees":[{"login":"mbwhite","id":6673453,"avatar_url":"https://avatars2.githubusercontent.com/u/6673453?v=3","gravatar_id":"","url":"https://api.github.com/users/mbwhite","html_url":"https://github.com/mbwhite","followers_url":"https://api.github.com/users/mbwhite/followers","following_url":"https://api.github.com/users/mbwhite/following{/other_user}","gists_url":"https://api.github.com/users/mbwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/mbwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbwhite/subscriptions","organizations_url":"https://api.github.com/users/mbwhite/orgs","repos_url":"https://api.github.com/users/mbwhite/repos","events_url":"https://api.github.com/users/mbwhite/events{/privacy}","received_events_url":"https://api.github.com/users/mbwhite/received_events","type":"User","site_admin":false},{"login":"14gracel","id":17450713,"avatar_url":"https://avatars1.githubusercontent.com/u/17450713?v=3","gravatar_id":"","url":"https://api.github.com/users/14gracel","html_url":"https://github.com/14gracel","followers_url":"https://api.github.com/users/14gracel/followers","following_url":"https://api.github.com/users/14gracel/following{/other_user}","gists_url":"https://api.github.com/users/14gracel/gists{/gist_id}","starred_url":"https://api.github.com/users/14gracel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/14gracel/subscriptions","organizations_url":"https://api.github.com/users/14gracel/orgs","repos_url":"https://api.github.com/users/14gracel/repos","events_url":"https://api.github.com/users/14gracel/events{/privacy}","received_events_url":"https://api.github.com/users/14gracel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-03-07T19:33:25Z","updated_at":"2017-03-22T15:26:44Z","closed_at":"2017-03-22T15:26:44Z","body":"If a developer tries to list a **non-existing**(i.e. before deploying) network, then the following is shown:\r\n\r\n```\r\n$ composer network list -n digitalproperty-network --enrollId WebAppAdmin --enrollSecret DJY27pEnl16d\r\nList business network digitalproperty-network\r\n2017-03-07T19:22:24.818Z ERROR   FSConnectionProfileStore :load()                    Failed to loaded connection profile defaultProfile {\"0\":{\"stack\":[\"{Error}ENOENT: no such file or directory, open '/Users/sanjaysaxena/.composer-connection-profiles/defaultProfile/connection.json' Error: ENOENT: no such file or directory, open '/Users/sanjaysaxena/.composer-connection-profiles/defaultProfile/connection.json'\",\"    at Error (native)\"]}}$\r\nError: Failed to load connection profile defaultProfile\r\n    at fs.readFile.then.catch (/usr/local/lib/node_modules/composer-cli/node_modules/composer-common/lib/fsconnectionprofilestore.js:87:23)\r\nCommand completed successfully.\r\n\r\n```\r\n## Context\r\nThe error message should be more user-friendly.\r\n\r\n## Expected Behavior\r\nIdeally, the error message should inform the user that the specified network does not exist or has not been deployed.\r\n\r\n## Actual Behavior\r\nSee above.\r\n\r\n## Possible Fix\r\nShow a useful error message.\r\n\r\n## Steps to Reproduce\r\nSee above.\r\n\r\n## Existing issues\r\n\r\n## Context\r\nJust trying to learn HFC.\r\n\r\n## Your Environment\r\n* Version used: composer-cli  v0.4.5\r\n* Environment name and version (e.g. Chrome 39, node.js 5.4): Node.js v6.10.\r\n* Operating System and version (desktop or mobile): Mac OS 10.12.1\r\n* Link to your project:\r\n"}}
{"actor":{"display_login":"mbwhite"}}