From 0ef3dfcec35c3957b895c292196f349f06662f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Fr=C3=A9con?= Date: Fri, 27 Sep 2024 17:04:18 +0200 Subject: [PATCH] Add error when no runtime found --- lib/microvm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/microvm.sh b/lib/microvm.sh index 9a564aa..d8aa634 100644 --- a/lib/microvm.sh +++ b/lib/microvm.sh @@ -32,6 +32,8 @@ _microvm_runtime_auto() { elif check_command -s -- krunvm; then check_command buildah KRUNVM_RUNNER_RUNTIME="krunvm" + else + error "No suitable runtime found. Please install 'krun' or 'krunvm'" fi info "Automatically selected $KRUNVM_RUNNER_RUNTIME to handle microVMs" }