mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 18:30:14 +00:00
Include type in error message
This commit is contained in:
@@ -217,7 +217,7 @@ test.serial(
|
||||
),
|
||||
{
|
||||
message:
|
||||
/Unexpected value for repository property 'github-codeql-extra-queries', got: 123/,
|
||||
/Unexpected value for repository property 'github-codeql-extra-queries' \(number\), got: 123/,
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
@@ -172,7 +172,7 @@ function setProperty<K extends RepositoryPropertyName>(
|
||||
properties[name] = propertyOptions.parse(name, value, logger);
|
||||
} else {
|
||||
throw new Error(
|
||||
`Unexpected value for repository property '${name}', got: ${JSON.stringify(value)}`,
|
||||
`Unexpected value for repository property '${name}' (${typeof value}), got: ${JSON.stringify(value)}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user