drewblessing / gitlab-cli

GitLab Command Line Tool - Interact with your GitLab server via the command line to manage snippets, projects and more.
MIT License
166 stars 20 forks source link

Strange error if you try to run snippet command on project that isn't accessible #34

Closed dblessing closed 11 years ago

dblessing commented 11 years ago

/usr/lib/ruby/1.8/uri/generic.rb:732:in merge': bad URI(is not URI?): #<GitlabCli::Project:0x7f2fefe13810>#<GitlabCli::Project:0x7f2fefe10200>#<GitlabCli::Project:0x7f2fefe0f3f0>#<GitlabCli::Project:0x7f2fefe0e5e0>#<GitlabCli::Project:0x7f2fefe0d7d0>#<GitlabCli::Project:0x7f2fefe0c9c0>#<GitlabCli::Project:0x7f2fefe0ba98>#<GitlabCli::Project:0x7f2fefe0ac38>#<GitlabCli::Project:0x7f2fefe09e00>#<GitlabCli::Project:0x7f2fefe08ff0>#<GitlabCli::Project:0x7f2fefe08140>#<GitlabCli::Project:0x7f2fefe07330>#<GitlabCli::Project:0x7f2fefe064d0>#<GitlabCli::Project:0x7f2fefe056c0>#<GitlabCli::Project:0x7f2fefe048b0>#<GitlabCli::Project:0x7f2fefe03aa0>#<GitlabCli::Project:0x7f2fefe02c68>#<GitlabCli::Project:0x7f2fefe01d68>#<GitlabCli::Project:0x7f2fefe00f30>#<GitlabCli::Project:0x7f2fefe00120>#<GitlabCli::Project:0x7f2fefdff270>#<GitlabCli::Project:0x7f2fefdfe438>#<GitlabCli::Project:0x7f2fefdfd600>#<GitlabCli::Project:0x7f2fefdfc7a0>#<GitlabCli::Project:0x7f2fefdfb990>#<GitlabCli::Project:0x7f2fefdfab80>#<GitlabCli::Project:0x7f2fefdf9d70>#<GitlabCli::Project:0x7f2fefdf8f38>#<GitlabCli::Project:0x7f2fefdf8010>#<GitlabCli::Project:0x7f2fefdf7200>#<GitlabCli::Project:0x7f2fefdf63c8>#<GitlabCli::Project:0x7f2fefdf5540>#<GitlabCli::Project:0x7f2fefdf46e0>#<GitlabCli::Project:0x7f2fefdf38d0>#<GitlabCli::Project:0x7f2fefdf2a70>#<GitlabCli::Project:0x7f2fefdf1c60>#<GitlabCli::Project:0x7f2fefdf0e50>/snippets/21 (URI::InvalidURIError) from /usr/lib/ruby/1.8/uri/common.rb:522:injoin' from /usr/lib/ruby/1.8/uri/common.rb:521:in each' from /usr/lib/ruby/1.8/uri/common.rb:521:injoin' from /usr/lib/ruby/gems/1.8/gems/gitlab_cli-2.0.0/lib/gitlab_cli/snippet.rb:22:in get_view_url' from /usr/lib/ruby/gems/1.8/gems/gitlab_cli-2.0.0/lib/gitlab_cli/snippet.rb:14:ininitialize' from /usr/lib/ruby/gems/1.8/gems/gitlab_cli-2.0.0/lib/gitlab_cli/util/snippets.rb:26:in new' from /usr/lib/ruby/gems/1.8/gems/gitlab_cli-2.0.0/lib/gitlab_cli/util/snippets.rb:26:inget_all' from /usr/lib/ruby/gems/1.8/gems/gitlab_cli-2.0.0/lib/gitlab_cli/util/snippets.rb:25:in map' from /usr/lib/ruby/gems/1.8/gems/gitlab_cli-2.0.0/lib/gitlab_cli/util/snippets.rb:25:inget_all' from /usr/lib/ruby/gems/1.8/gems/gitlab_cli-2.0.0/lib/gitlab_cli/cli.rb:62:in snippets' from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor/command.rb:27:insend' from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor/command.rb:27:in run' from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor/invocation.rb:120:ininvoke_command' from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor.rb:363:in dispatch' from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor/base.rb:439:instart' from /usr/lib/ruby/gems/1.8/gems/gitlab_cli-2.0.0/bin/gitlab:4 from /usr/bin/gitlab:19:in `load' from /usr/bin/gitlab:19