Skip to content

Commit

Permalink
Merge pull request #17 from jenkins-infra/jglick-patch-1
Browse files Browse the repository at this point in the history
Error message was backwards
  • Loading branch information
halkeye authored Nov 18, 2021
2 parents 16b59df + ad4a223 commit 0783a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = {
log.info(util.format('Parsed %s with url=%s tag=%s GAV=%s:%s:%s', entry.name, url, tag, groupId, artifactId, version));
const expectedPath = groupId.replace(/[.]/g, '/') + '/' + artifactId + '/' + version + '/' + artifactId + '-' + version + '.pom';
if (tag !== hash) {
this.emit('error', new Error(`Wrong commit hash in /project/scm/tag, expected ${tag}, got ${hash}`));
this.emit('error', new Error(`Wrong commit hash in /project/scm/tag, expected ${hash}, got ${tag}`));
return
} else if (!url.match('^https?://github[.]com/.+$')) {
this.emit('error', new Error('Wrong URL in /project/scm/url'));
Expand Down

0 comments on commit 0783a7b

Please sign in to comment.