Skip to content

Commit

Permalink
Merge pull request #337 from hazelcast/bugfix/cloud-tags
Browse files Browse the repository at this point in the history
Detailed error message
  • Loading branch information
allfayn committed Feb 1, 2024
2 parents 161fbe5 + ec11a0b commit 52b9100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api_json.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports.register = function ({config}) {
const addEntity = ({title, url, tags, type, order}) => {
const arr = tags.split(',').map(cat => cat.trim())
if (config.tags && !arr.some(name => (config.tags ?? []).includes(name))) {
throw Error(`Wrong cloud tag '${name}'`)
throw Error(`Wrong cloud tag '${arr.join(', ')}' in '${title}'`)
}
content.push({
title: title && title.trim(),
Expand Down

0 comments on commit 52b9100

Please sign in to comment.