-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error handling for command
dotnet csharpier
In Rust, command exit status has to be handled manually. Not handling exit status would cause the generator to generate invalid code when `dotnet` is installed, but `csharpier` is not installed. Switch from using `dotnet csharpier` to using `dotnet-csharpier`. The former produces really verbose output by `dotnet` when `csharpier` is not installed or dotnet tools directory is not in PATH, while the latter returns a neat `command not found` error if CSharpier is not yet installed. Signed-off-by: Kristupas Antanavicius <kristupas.antanavicius@nordsec.com>
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters