Skip to content

Commit

Permalink
Include logging with failing posit file includes
Browse files Browse the repository at this point in the history
  • Loading branch information
dotNomad committed Nov 12, 2024
1 parent 1f79690 commit 5241816
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions extensions/vscode/src/multiStepInputs/newDeployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,10 @@ export async function newDeployment(
newDeploymentData.entrypoint.inspectionResult.projectDir,
);
} catch (error: unknown) {
// continue on, as this is not a critical failure
// continue on as it is not necessary to include .posit files for deployment
console.debug(
`Failed to add the configuration file '${configName}' to \`files\`.`,
);
}

// Create the PreContentRecord File
Expand Down Expand Up @@ -921,7 +924,10 @@ export async function newDeployment(
newDeploymentData.entrypoint.inspectionResult.projectDir,
);
} catch (error: unknown) {
// continue on, as this is not a critical failure
// continue on as it is not necessary to include .posit files for deployment
console.debug(
`Failed to add the content record file '${newContentRecord.deploymentName}' to \`files\`.`,
);
}

if (!newOrSelectedCredential) {
Expand Down

0 comments on commit 5241816

Please sign in to comment.