Skip to content

Commit 72c110f

Browse files
committed
Try mroe logging
1 parent b590204 commit 72c110f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/utils.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,18 @@ const getSecretFromConnectItem = async (
9494

9595
// If a file was found, get the content of the file
9696
if (fileId) {
97-
const content = await client.getFileContent(
98-
parsed.vault,
99-
parsed.item,
100-
fileId,
101-
);
102-
return content;
97+
try {
98+
core.info(`Getting file content: vault=${parsed.vault} item=${parsed.item} fileId=${fileId}`);
99+
const content = await client.getFileContent(
100+
parsed.vault,
101+
parsed.item,
102+
fileId,
103+
);
104+
return content;
105+
} catch (err) {
106+
core.error(`getFileContent failed: ${getErrorMessage(err)}`);
107+
throw err;
108+
}
103109
}
104110

105111
if (parsed.section) {

0 commit comments

Comments
 (0)