Updated logs

This commit is contained in:
Sankalp Kotewar 2022-11-17 19:14:51 +00:00 committed by GitHub
parent da7d0c0cb6
commit cd1e32a41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ async function run(): Promise<void> {
if (!cacheKey) {
if (core.getInput(Inputs.StrictRestore) == "true") {
throw new Error(
"Cache with given key not found, hence exiting the workflow as the strict-restore requirement is not met."
`Cache with the given input key ${primaryKey} is not found, hence exiting the workflow as the strict-restore requirement is not met.`
);
}
core.info(
@ -59,7 +59,7 @@ async function run(): Promise<void> {
if (!isExactKeyMatch && core.getInput(Inputs.StrictRestore) == "true") {
throw new Error(
"Restored cache doesn't match the key in the input, hence exiting the workflow as the strict-restore requirement is not met."
`Restored cache key doesn't match the given input key ${primaryKey}, hence exiting the workflow as the strict-restore requirement is not met.`
);
}
core.info(`Cache restored from key: ${cacheKey}`);