end
# Get the requested URI, and check the HTTP response. Then convert to JSON
# and check for Github errors.
fun get_and_check(uri: String): nullable Jsonable
do
end
# Get the requested URI, and check the HTTP response. Then convert to JSON
# and check for Github errors.
fun get_and_check(uri: String): nullable Jsonable
do
if obj isa JsonObject then
if obj.keys.has("message") then
var title = "GithubAPIError"
if obj isa JsonObject then
if obj.keys.has("message") then
var title = "GithubAPIError"
var err = new GithubError(msg, title)
err.json["requested_uri"] = uri
err.json["status_code"] = response.status_code
var err = new GithubError(msg, title)
err.json["requested_uri"] = uri
err.json["status_code"] = response.status_code
- var p = new IProcess("git", "config", "--get", "github.oauthtoken")
+ var p = new ProcessReader("git", "config", "--get", "github.oauthtoken")