Try mroe logging

This commit is contained in:
Jill Regan
2026-02-20 17:50:24 -05:00
parent b590204659
commit 72c110fb96

View File

@@ -94,12 +94,18 @@ const getSecretFromConnectItem = async (
// If a file was found, get the content of the file
if (fileId) {
const content = await client.getFileContent(
parsed.vault,
parsed.item,
fileId,
);
return content;
try {
core.info(`Getting file content: vault=${parsed.vault} item=${parsed.item} fileId=${fileId}`);
const content = await client.getFileContent(
parsed.vault,
parsed.item,
fileId,
);
return content;
} catch (err) {
core.error(`getFileContent failed: ${getErrorMessage(err)}`);
throw err;
}
}
if (parsed.section) {