Skip to content

Commit 5311ed4

Browse files
committed
Include type in error message
1 parent 58314dc commit 5311ed4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/init-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/feature-flags/properties.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ test.serial(
217217
),
218218
{
219219
message:
220-
/Unexpected value for repository property 'github-codeql-extra-queries', got: 123/,
220+
/Unexpected value for repository property 'github-codeql-extra-queries' \(number\), got: 123/,
221221
},
222222
);
223223
},

src/feature-flags/properties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function setProperty<K extends RepositoryPropertyName>(
172172
properties[name] = propertyOptions.parse(name, value, logger);
173173
} else {
174174
throw new Error(
175-
`Unexpected value for repository property '${name}', got: ${JSON.stringify(value)}`,
175+
`Unexpected value for repository property '${name}' (${typeof value}), got: ${JSON.stringify(value)}`,
176176
);
177177
}
178178
}

0 commit comments

Comments
 (0)