From 53ed1a9a4c703639c917e3993d60403553dc6917 Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Wed, 6 Nov 2024 15:53:15 +0000 Subject: [PATCH] better usage --- Sources/ActionBuilderTool/ActionBuilderTool.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/ActionBuilderTool/ActionBuilderTool.swift b/Sources/ActionBuilderTool/ActionBuilderTool.swift index 032a36e..405309d 100644 --- a/Sources/ActionBuilderTool/ActionBuilderTool.swift +++ b/Sources/ActionBuilderTool/ActionBuilderTool.swift @@ -17,7 +17,7 @@ import SemanticVersion let args = all.filter({ !$0.starts(with: "--") }) guard args.count == 2 else { let name = URL(fileURLWithPath: args[0]).lastPathComponent - print("\n\nUsage: \(name) ") + print("\n\nUsage: \(name) ") exit(1) } @@ -78,7 +78,8 @@ import SemanticVersion encoder.outputFormatting = [.prettyPrinted, .sortedKeys] let defaultSettings = try encoder.encode(Settings(from: repo)) try defaultSettings.write(to: settingsURL) - } catch { + } + catch { print("Failed to create config file.\n\(error)") } }