Tidy-up caching code

- Extracted common code for Gradle User Home and Project .gradle caches
  into abstract supertype.
- Improve error handling by checking error types
This commit is contained in:
Daz DeBoer
2021-09-07 15:17:39 -06:00
parent c44ebadf6f
commit 6d1455a33e
6 changed files with 134 additions and 162 deletions
+3
View File
@@ -36,6 +36,9 @@ export async function run(): Promise<void> {
core.setFailed(`Gradle process exited with status ${result.status}`)
}
} catch (error) {
if (!(error instanceof Error)) {
throw error
}
core.setFailed(error.message)
}
}