Try mroe logging
This commit is contained in:
@@ -94,12 +94,18 @@ const getSecretFromConnectItem = async (
|
|||||||
|
|
||||||
// If a file was found, get the content of the file
|
// If a file was found, get the content of the file
|
||||||
if (fileId) {
|
if (fileId) {
|
||||||
|
try {
|
||||||
|
core.info(`Getting file content: vault=${parsed.vault} item=${parsed.item} fileId=${fileId}`);
|
||||||
const content = await client.getFileContent(
|
const content = await client.getFileContent(
|
||||||
parsed.vault,
|
parsed.vault,
|
||||||
parsed.item,
|
parsed.item,
|
||||||
fileId,
|
fileId,
|
||||||
);
|
);
|
||||||
return content;
|
return content;
|
||||||
|
} catch (err) {
|
||||||
|
core.error(`getFileContent failed: ${getErrorMessage(err)}`);
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parsed.section) {
|
if (parsed.section) {
|
||||||
|
|||||||
Reference in New Issue
Block a user