Skip to content

Commit

Permalink
Cleaner error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Sep 4, 2024
1 parent 25ca3f1 commit 073f30c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
{
"type": "swift-lldb",
"request": "launch",
"args": [
"archive",
"--platform=macOS",
"--verbose"
],
"cwd": "${workspaceFolder:ReleaseTools}/../stack/",
"args": [],
"cwd": "${workspaceFolder:ReleaseTools}",
"name": "Debug rt",
"program": "${workspaceFolder:ReleaseTools}/.build/debug/rt",
"preLaunchTask": "swift: Build Debug rt"
Expand All @@ -22,5 +18,18 @@
"program": "${workspaceFolder:ReleaseTools}/.build/release/rt",
"preLaunchTask": "swift: Build Release rt"
},
{
"type": "swift-lldb",
"request": "launch",
"args": [
"archive",
"--platform=macOS",
"--show-output"
],
"cwd": "${workspaceFolder:ReleaseTools}/../Stack",
"name": "Debug -- Stack",
"program": "${workspaceFolder:ReleaseTools}/.build/debug/rt",
"preLaunchTask": "swift: Build Debug rt"
},
]
}
4 changes: 4 additions & 0 deletions Sources/ReleaseTools/RootCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,8 @@ struct RootCommand: AsyncParsableCommand {
exit(withError: error)
}
}

/// Error label - adds some extra newlines to separate the error message from the rest of the output.
public static var _errorLabel: String { "\n\nError" }

}

0 comments on commit 073f30c

Please sign in to comment.