fix #507 #509
Closed
Apfelwurm
wants to merge 1 commits from
Apfelwurm/abra:own/fix_addserver into main
pull from: Apfelwurm/abra:own/fix_addserver
merge into: :main
:main
:renovate/golang-1.27
:renovate/github.com-charmbracelet-bubbletea-2.x
:fix/492
:local-integration-testing
:renovate/github.com-charmbracelet-lipgloss-2.x
:renovate/otel-weaver-0.x
:renovate/codespell-2.x
:renovate/tonistiigi-xx-1.x
:renovate/alpine-3.x
:renovate/github.com-charmbracelet-log-2.x
:chore-deps
:fix/deps
:fix/613
Labels
Clear labels
bug
build
ci/cd
critical fix
design
documentation
duplicate
easy-first-issue
enhancement
help wanted
i10n
i18n
installer
invalid
question
release
release-candidate
security
tech-debt
test
wontfix
Something is not working
go build related issues
Building things with CI/CD
https://docs.coopcloud.tech/federation/resolutions/passed/010/
UI/UX
Documenting all the things
This issue or pull request already exists
Something for new people to get stuck into. We hope it's easy!
New feature
Need some help
Everything to do with localisation
Everything to do with internationalisation
Everything to do with the install script.
Something is wrong
More information is needed
Release management
Related to the new release candidate
Security related
Unit/integration testing
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
abra v0.10.0
Done
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/abra#509
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This fixes the error output when using abra add server, so it actually returns the relevant exception message. Created with the help of @P4u1
And since i did not write anything on my last PR:
Hey all, i'm Alex and i'm one of the members of Klasse & Methode :)
Great stuff, thanks @Apfelwurm 🎉
@@ -89,7 +89,7 @@ func New(serverName string, opts ...Opt) (*client.Client, error) {info, err := cl.Info(context.Background())if err != nil {return cl, sshPkg.Fatal(serverName, err)Is
sshPkg.Fatalused anywhere else and/or should it be removed?It is still also in use in https://git.coopcloud.tech/toolshed/abra/src/branch/main/cli/server/add.go#L106 :)
Sorry, to look at this again, is it not the problem that repeatedly saying "try ssh'ing to the server" is confusing when that does indeed work #507 (comment)
What
sshPkg.Fatalis trying to do is "route" error messages so that what is given back to the user is very specific and isnot a "wall of text"
So, for me, the ideal situation would be to handle "Unknown command: docker" (see #507 logs) with a specific error messages, aka "are you sure Docker is installed / your user has the permissions"?
We could also additionally match for "please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host" to give a similar warning.
sshPkg.Fatalwas implemented specifically to help people get better feedback based on many issues raised over the years on this connection situation, which often effects beginners disproportionately.I would normally be up for merging stuff and seeing how it goes but I've noticed that changes around error message handling which is given directly to users needs to be handled very carefully or can result in
$moreissue reports and growing frustration.Let me know what you think @Apfelwurm and thanks again!
@decentral1se I think this pull request is doing what you wrote in you last message
To improve error handling in general I create a new pr with a proof of concept for errors with help messages: #512
@p4u1 @Apfelwurm
Just to share what was discussed elsewhere:
@p4u1 and myself agreed that I can come up with an adjusted fix for this.
Coming Soon ™
Pull request closed