Skip to content

Conversation

@pjcdawkins
Copy link
Contributor

@pjcdawkins pjcdawkins commented Dec 4, 2024

Prints a clear error message instead of silently failing:

$ go run ./cmd/platform/main.go help | head -n1
Command: help
$
$ platform help | head -n1
Command: help
$
$ chmod u-x /tmp/platform*
$
$ platform help | head -n1
$
$ go run ./cmd/platform/main.go help | head -n1
2024/12/05 16:28:53 could not acquire lock: open /tmp/platformsh-cli-0.0.0-0.0.0/.lock: permission denied
exit status 1

@pjcdawkins pjcdawkins requested a review from akalipetis December 4, 2024 15:47
Copy link
Member

@akalipetis akalipetis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akalipetis akalipetis merged commit 8bf7272 into main Dec 10, 2024
1 check passed
@akalipetis akalipetis deleted the print-init-error branch December 10, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants