mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
[PR #527] [MERGED] Catch PklException errors coming from project load #603
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/527
Author: @bioball
Created: 6/13/2024
Status: ✅ Merged
Merged: 6/14/2024
Merged by: @bioball
Base:
main← Head:fix-project-loading📝 Commits (1)
1e2a9efCatch PklException errors coming from project load📊 Changes
1 file changed (+5 additions, -4 deletions)
View changed files
📝
pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliCommand.kt(+5 -4)📄 Description
This fixes an issue where an error coming from loading a project file is shown as a PklBugException.
There were two problems here:
proxyAddressneeds to be a lazy value, because it can try to load a PklProjectproxyAddresscan throw aPklException, so it needs to be within the try/catch🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.