mirror of
https://github.com/pnpm/action-setup.git
synced 2025-01-31 14:56:39 +08:00
Exit
This commit is contained in:
parent
429bc133fd
commit
fe1f80eaca
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -18,6 +18,7 @@ async function parsePath(pattern: string, inputName: string) {
|
|||||||
const paths = await builder.glob()
|
const paths = await builder.glob()
|
||||||
if (paths.length !== 1) {
|
if (paths.length !== 1) {
|
||||||
error(`Input ${inputName} is expected to match 1 path, but it matches ${paths.length}: ${inspect(paths)}`)
|
error(`Input ${inputName} is expected to match 1 path, but it matches ${paths.length}: ${inspect(paths)}`)
|
||||||
|
throw process.exit(1)
|
||||||
}
|
}
|
||||||
return paths[0]
|
return paths[0]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user