Skip to content

Commit a91332c

Browse files
committed
throw the error
1 parent d76ca69 commit a91332c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/exclude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class Exclude {
2020
} catch (error) {
2121
if (this.required === true) {
2222
core.setFailed(`error reading exclude_file: ${this.path}`)
23-
return new Error(`error: ${error}`)
23+
throw new Error(error)
2424
}
2525

2626
core.info(`exclude_file was not found, but it is not required - OK`)

0 commit comments

Comments
 (0)