• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bucharest-gold / nodeshift / 299
96%

Build:
DEFAULT BRANCH: master
Ran 16 Nov 2017 05:42PM UTC
Jobs 1
Files 37
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
299

push

travis-ci

lholmquist
src: improve log message when user is not logged in (#136)

* src: improve log message when user is not logged in

It's debatable whether this is a great improvement. I will adjust it
if it turns out to be not ideal. Now, when a user is not logged in,
the CLI writes the caught exception message and status code to
the output log. It would be ideal if we could determinen whether the
user was already logged in before making a remote call, however, so
that we can make the output nicer looking. In any case, here is what
the error looks like now.

```sh
~/s/nodejs-rest-http (master $=) nodeshift --osc.strictSSL=false .
2017-11-16T16:58:53.841Z INFO loading configuration
2017-11-16T16:58:53.867Z INFO using namespace myproject at https://192.168.99.100:8443
2017-11-16T16:58:53.871Z INFO enriching Deployment resource
2017-11-16T16:58:53.873Z INFO enriching Route resource
2017-11-16T16:58:53.874Z INFO enriching Service resource
2017-11-16T16:58:53.879Z INFO openshift.yaml and openshift.json written to /Users/lanceball/src/nodejs-rest-http/tmp/nodeshift/resource/
2017-11-16T16:58:53.883Z INFO creating archive of package.json, app.js, public, bin, LICENSE
2017-11-16T16:58:53.922Z ERROR User "system:anonymous" cannot get buildconfigs in project "myproject"
2017-11-16T16:58:53.922Z ERROR Status code 403
```

I also added debuglog for the CLI, so if the command is run as

```sh
$ NODE_DEBUG=nodeshift.cli nodeshift .
```

then it will print the stack and config object to the console.

Fixes: https://github.com/bucharest-gold/nodeshift/issues/98

* src: make config a const again #MCCA

124 of 127 branches covered (97.64%)

Branch coverage included in aggregate %.

434 of 459 relevant lines covered (94.55%)

2.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 299.1 16 Nov 2017 05:42PM UTC 0
95.22
Travis Job 299.1
Source Files on build 299
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #299
  • 4a039ba6 on github
  • Prev Build on master (#298)
  • Next Build on master (#315)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc