[ 
https://issues.apache.org/jira/browse/YETUS-956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066441#comment-17066441
 ] 

Akira Ajisaka commented on YETUS-956:
-------------------------------------

example: 404 error but return 0
{noformat}
aajisaka@e23da33c36eb:~/hadoop$ curl -X POST -H "Accept: 
application/vnd.github.v3.full+json" -H "Content-Type: application/json" 
"${githubauth[@]}" -d @"${restfile}" --location 
"https://api.github.com/repos/aajisaka/testing/issues/100/comments";
{
  "message": "Not Found",
  "documentation_url": 
"https://developer.github.com/v3/issues/comments/#create-a-comment";
}
aajisaka@e23da33c36eb:~/hadoop$ echo $?
0
{noformat}

> github_write_comment returns 0 even when failed to write comment
> ----------------------------------------------------------------
>
>                 Key: YETUS-956
>                 URL: https://issues.apache.org/jira/browse/YETUS-956
>             Project: Yetus
>          Issue Type: Bug
>          Components: Precommit
>            Reporter: Akira Ajisaka
>            Priority: Minor
>
> curl returns 0 even when 4XX is returned.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to