mirror of https://github.com/actions/toolkit
Fix incorrect error message
parent
508df3dce8
commit
1b1544c839
|
@ -77,7 +77,9 @@ export const getArchiveType = async (filePath: string): Promise<ArchiveType> =>
|
||||||
|
|
||||||
const closeEverythingAndReject = (error?: Error): void => {
|
const closeEverythingAndReject = (error?: Error): void => {
|
||||||
readStream.close()
|
readStream.close()
|
||||||
fs.close(fd, () => reject(error ?? Error('Unable to read file')))
|
fs.close(fd, () =>
|
||||||
|
reject(error ?? Error('Unable to determine archive type'))
|
||||||
|
)
|
||||||
readStream.push(null)
|
readStream.push(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue