From 8a2441673b013920b26dddb551f0a0d23e91bd3a Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Thu, 18 Nov 2021 09:01:19 -0500 Subject: [PATCH] Error message was backwards --- lib/permissions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/permissions.js b/lib/permissions.js index eca3e0d..6d5a41e 100644 --- a/lib/permissions.js +++ b/lib/permissions.js @@ -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'));