fix: error handling in abra recipe fetch -a #601

Merged
decentral1se merged 4 commits from fix/582 into main 2025-08-18 06:32:42 +00:00

4 Commits

Author SHA1 Message Date
02238d1d82 test: retrieve abra-test-recipe by hand now
All checks were successful
continuous-integration/drone/push Build is passing
2025-08-18 08:09:58 +02:00
e2b4fffa65 fix: return error, not log.Fatal
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
See #582
2025-08-18 08:00:50 +02:00
5274d0f37d refactor: move ensureCtx closer to usage 2025-08-18 08:00:38 +02:00
110f261fad refactor: always validate recipe
This can slow things significantly down by requiring the catalogue and
if you don't have that, cause a slow `git clone`. However, the current
behvaiour is very confusing because it never actually checks if what the
user passes is actually a recipe. `abra recipe fetch DOESNTEXIST` gives
a better error to the user now. I'm hoping we can speed up the catalogue
handling at some point.
2025-08-18 07:59:12 +02:00