Closes #49 Add check that path is not empty.
This avoids a panic in a case like br catalog add file://test.zip, if you forget to add the path to the file, file:///some/path/test.zip. Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/6d5574af Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/6d5574af Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/6d5574af Branch: refs/heads/master Commit: 6d5574af657f4f544f0cac8ddd0c32d279ff6d68 Parents: c745579 aeb8772 Author: Geoff Macartney <[email protected]> Authored: Thu Apr 27 14:01:26 2017 +0100 Committer: Geoff Macartney <[email protected]> Committed: Thu Apr 27 14:01:26 2017 +0100 ---------------------------------------------------------------------- cli/api/catalog/catalog.go | 4 ++++ 1 file changed, 4 insertions(+) ----------------------------------------------------------------------
