diff --git a/packages/tool-cache/src/archive/get-archive-type.ts b/packages/tool-cache/src/archive/get-archive-type.ts index 26ad06ef..c683fb5c 100644 --- a/packages/tool-cache/src/archive/get-archive-type.ts +++ b/packages/tool-cache/src/archive/get-archive-type.ts @@ -77,7 +77,9 @@ export const getArchiveType = async (filePath: string): Promise => const closeEverythingAndReject = (error?: Error): void => { 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) }