Skip to content

Commit

Permalink
Changed ii startup errors to write to stderr instead of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed Aug 17, 2022
1 parent e61e807 commit 7f7cdfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Added new command line flag `-y somefile.yaml` in `ii` CLI tool to specify a custom config file

## Changed

- `ii` startup errors are written to stderr instead of stdout

# [0.0.5] - 2022-07-20

## Dependencies
Expand Down
4 changes: 2 additions & 2 deletions ii/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static int Main(string[] args)
//verify the file they told us about is real
if (!File.Exists(explicitLocation))
{
Console.WriteLine($"Could not find file: {explicitLocation}");
Console.Error.WriteLine($"Could not find file: {explicitLocation}");
return 1;
}

Expand All @@ -75,7 +75,7 @@ public static int Main(string[] args)
}
catch (Exception ex)
{
Console.WriteLine($"Could not deserialize {SettingsFile}:{ex}");
Console.Error.WriteLine($"Could not deserialize {SettingsFile}:{ex}");
return 1;
}
}
Expand Down

0 comments on commit 7f7cdfe

Please sign in to comment.