diff --git a/README.md b/README.md index f89ff7d..911ed3d 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,10 @@ Some notes for writing tests: $ git push --tags remote-name + OR, better: + + $ git push remote-name tag-name + 3. GitHub Actions will create a draft release corresponding to the tag. It will also attach the `turkey` and `turkey-$arch` binaries to the release. diff --git a/Turkey/Program.cs b/Turkey/Program.cs index c04d0ef..c1f140e 100644 --- a/Turkey/Program.cs +++ b/Turkey/Program.cs @@ -150,8 +150,7 @@ public static async Task GenerateNuGetConfigIfNeededAsync(string additio catch( HttpRequestException exception ) { Console.WriteLine("WARNING: failed to get ProdCon url. Ignoring Exception:"); - Console.WriteLine(exception.Message); - Console.WriteLine(exception.StackTrace); + Console.WriteLine(exception.ToString()); } string nugetConfig = null; @@ -162,11 +161,13 @@ public static async Task GenerateNuGetConfigIfNeededAsync(string additio catch( HttpRequestException exception ) { Console.WriteLine("WARNING: failed to get NuGet.config from source-build. Ignoring Exception:"); - Console.WriteLine(exception.Message); - Console.WriteLine(exception.StackTrace); + Console.WriteLine(exception.ToString()); } - return await nuget.GenerateNuGetConfig(urls, nugetConfig); + if (urls.Any() || nugetConfig != null) + { + return await nuget.GenerateNuGetConfig(urls, nugetConfig); + } } return null; diff --git a/Turkey/SourceBuild.cs b/Turkey/SourceBuild.cs index 19a70b2..bf0a348 100644 --- a/Turkey/SourceBuild.cs +++ b/Turkey/SourceBuild.cs @@ -52,7 +52,7 @@ public async Task GetNuGetConfigAsync(Version version) } catch( HttpRequestException e ) { - Console.WriteLine($"WARNING: {e.Message}"); + Console.WriteLine($"WARNING: {e.ToString()}"); } return nugetConfig;