mirror of
https://github.com/pnpm/action-setup.git
synced 2025-07-03 19:13:05 +08:00
Correct validation error message
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -40,7 +40,7 @@ function parseRunInstall(name: string): RunInstall[] {
|
||||
const validate = ajv.compile(runInstallSchema)
|
||||
if (!validate(result)) {
|
||||
for (const errorItem of validate.errors!) {
|
||||
error(`${errorItem.dataPath}: ${errorItem.message}`)
|
||||
error(`with.run_install${errorItem.dataPath}: ${errorItem.message}`)
|
||||
}
|
||||
return process.exit(1)
|
||||
}
|
||||
|
Reference in New Issue
Block a user