Skip to content

Commit 36b2fb4

Browse files
PunkChameleonlucasvo-taulia
authored andcommitted
Add fallback for statusCode errors in addComment
1 parent 0658c1e commit 36b2fb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/jira.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,9 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor
13931393
if (response.statusCode === 400) {
13941394
callback("Invalid Fields: " + JSON.stringify(body));
13951395
return;
1396-
}
1396+
};
1397+
1398+
callback(response.statusCode + ': Error while adding comment');
13971399
});
13981400
};
13991401

0 commit comments

Comments
 (0)