Unify error messages in getFileType
This commit is contained in:
parent
4b0172d9c2
commit
3901d1208a
3 changed files with 3 additions and 7 deletions
3
lib/actions-util.js
generated
3
lib/actions-util.js
generated
|
|
@ -399,8 +399,7 @@ const getFileType = async (filePath) => {
|
|||
fileCmdPath = await safeWhich.safeWhich("file");
|
||||
}
|
||||
catch (e) {
|
||||
core.info("The `file` program is required, but does not appear to be installed. Please install it.");
|
||||
throw new FileCmdNotFoundError(`The \`file\` program is not installed: ${e}`);
|
||||
throw new FileCmdNotFoundError(`The \`file\` program is required, but does not appear to be installed. Please install it: ${e}`);
|
||||
}
|
||||
try {
|
||||
// The `file` command will output information about the type of file pointed at by `filePath`.
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue