Commit 380e031d authored by Iuri Matias's avatar Iuri Matias

display github api error message

parent b28eb622
...@@ -19,6 +19,8 @@ module.exports = { ...@@ -19,6 +19,8 @@ module.exports = {
} }
if ('content' in data) { if ('content' in data) {
cb(null, base64.decode(data.content), root + '/' + path) cb(null, base64.decode(data.content), root + '/' + path)
} else if ('message' in data) {
cb(data.message)
} else { } else {
cb('Content not received') cb('Content not received')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment