Fixed crash with invalid target config name in beam commands

This commit is contained in:
Philipp Wolfer 2023-12-09 22:29:15 +01:00
parent 76fd7cfeb4
commit 1698568d0e
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
2 changed files with 6 additions and 1 deletions

View file

@ -67,6 +67,7 @@ func (c *TransferCmd[E, I, R]) resolveBackends(source string, target string) err
sourceConfig, err := config.GetService(source)
cobra.CheckErr(err)
targetConfig, err := config.GetService(target)
cobra.CheckErr(err)
// Initialize backends
expBackend, err := backends.ResolveBackend[E](sourceConfig)