lib/travis/cli/raw.rb in travis-1.6.15.travis.580.6 vs lib/travis/cli/raw.rb in travis-1.6.15
- old
+ new
@@ -10,9 +10,11 @@
on('--[no-]json', 'display as json')
def run(resource)
reply = session.get_raw(resource)
json? ? say(reply.to_json) : pp(reply)
+ rescue Travis::Client::NotFound
+ error "resource not found"
end
end
end
end