diff --git a/crash/session.py b/crash/session.py index e47a8cd7a0..9cc8240120 100644 --- a/crash/session.py +++ b/crash/session.py @@ -36,7 +36,13 @@ def __init__(self, roots: PathSpecifier = None, self.debug = debug self.verbose = verbose - target = crash.target.setup_target() + try: + target = crash.target.setup_target() + except crash.target.IncorrectTargetError as e: + print(str(e)) + print("Further debugging may not be possible.") + return + from crash.kernel import CrashKernel, CrashKernelError self.kernel = CrashKernel(roots, vmlinux_debuginfo, module_path,