Skip to content

Commit

Permalink
Log when ignoring an unknown API
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Nov 26, 2024
1 parent 3aeb4de commit fb059d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions containers/dotnet/MakeItSo/BuildCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void Execute()
case UnknownApiBehavior.Error:
throw new InvalidOperationException($"No API configured with proto path {_api}, and unknown API behavior is 'error'");
case UnknownApiBehavior.Ignore:
Console.WriteLine($"Ignoring unknown API {_api}");
return;
default:
throw new InvalidOperationException($"Unsupported unknown API behavior: {_unknownApiBehavior}");
Expand Down
1 change: 1 addition & 0 deletions containers/dotnet/MakeItSo/UpdateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void Execute()
case UnknownApiBehavior.Error:
throw new InvalidOperationException($"No API configured with proto path {_api}, and unknown API behavior is 'error'");
case UnknownApiBehavior.Ignore:
Console.WriteLine($"Ignoring unknown API {_api}");
return;
default:
throw new InvalidOperationException($"Unsupported unknown API behavior: {_unknownApiBehavior}");
Expand Down

0 comments on commit fb059d9

Please sign in to comment.