From d52d79d2dbcc98d44510c5006a68e3c0fbf61fa9 Mon Sep 17 00:00:00 2001 From: Ian Leitch Date: Fri, 13 Dec 2024 16:55:52 +0000 Subject: [PATCH] Fix help handling --- Sources/Frontend/main.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Sources/Frontend/main.swift b/Sources/Frontend/main.swift index afa301355..568c52741 100644 --- a/Sources/Frontend/main.swift +++ b/Sources/Frontend/main.swift @@ -29,13 +29,7 @@ signal(SIGINT) { _ in do { var command = try PeripheryCommand.parseAsRoot() - do { - try command.run() - } catch let error as PeripheryError { - throw error - } catch { - throw PeripheryError.underlyingError(error) - } + try command.run() } catch { PeripheryCommand.exit(withError: error) }