Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
use Log.Error if returning false (#259)
Browse files Browse the repository at this point in the history
don't use high priority for converting OriginUrl
fix #201
fix #223
  • Loading branch information
ctaggart authored Sep 21, 2017
1 parent 35b0ae6 commit 1e80c6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions SourceLink.Create.CommandLine/CreateTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public override bool Execute()
{
if(OriginUrl == null)
{
Log.LogMessage(MessageImportance.High, "OriginUrl not set");
Log.LogError("OriginUrl not set");
return false;
}
url = ConvertUrl(OriginUrl);
Log.LogMessage(MessageImportance.High, "SourceLinkUrl: " + url);
Log.LogMessage(MessageImportance.Normal, "SourceLinkUrl: " + url);
if (url == null)
{
Log.LogMessage(MessageImportance.High, "unable to convert OriginUrl: " + OriginUrl);
Log.LogError("unable to convert OriginUrl: " + OriginUrl);
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions SourceLink.Create.Shared/GitCreateTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ public override bool Execute()
var originCmd = Process.RunAndGetOutput("dotnet", originArgs);
if (originCmd.ExitCode != 0 || originCmd.OutputLines.Count != 1)
{
Log.LogMessage(MessageImportance.High, "unable to find repository origin with: dotnet " + originArgs);
Log.LogError("unable to find repository origin with: dotnet " + originArgs);
return false;
}
var origin = originCmd.OutputLines[0];
url = ConvertUrl(origin);
if (url == null)
{
Log.LogMessage(MessageImportance.High, "unable to convert origin url: " + origin);
Log.LogError("unable to convert origin url: " + origin);
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$version = '2.3.0' # the version under development, update after a release
$versionSuffix = '-a122' # manually incremented for local builds
$versionSuffix = '-a124' # manually incremented for local builds

function isVersionTag($tag){
$v = New-Object Version
Expand Down

0 comments on commit 1e80c6d

Please sign in to comment.