Skip to content

Commit feb1774

Browse files
authored
Merge pull request #32 from catcherwong/tcc-exception
docs: update tcc exception message and log
2 parents 9f784e8 + 7171462 commit feb1774

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Dtmcli/Dtmcli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RootNamespace>Dtmcli</RootNamespace>
99
<Description>a c# client for distributed transaction framework dtm. 分布式事务管理器dtm的c#客户端</Description>
1010
<PackageTags>dtm,csharp,distributed transaction,tcc,saga,msg</PackageTags>
11-
<VersionPrefix>0.5.0</VersionPrefix>
11+
<VersionPrefix>1.0.0</VersionPrefix>
1212
<VersionSuffix></VersionSuffix>
1313
<Authors>geffzhang</Authors>
1414
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>

src/Dtmcli/Tcc/Tcc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public async Task<string> CallBranch(object body, string tryUrl, string confirmU
4848

4949
if (isOldVerException || isNewVerException)
5050
{
51-
throw new DtmException("An exception occurred when CallBranch");
51+
throw new DtmException($"An exception occurred when CallBranch, status={response.StatusCode}, content={content}, ");
5252
}
5353

5454
return content;

src/Dtmcli/Tcc/TccGlobalTransaction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public async Task<string> Excecute(string gid, Action<Tcc> custom, Func<Tcc, Tas
4444
}
4545
catch (Exception ex)
4646
{
47-
logger.LogError(ex, "submitting or abort global transaction error");
47+
logger.LogError(ex, "prepare or submitting global transaction error");
4848
await dtmClient.TransCallDtm(tcc.GetTransBase(), tcc.GetTransBase(), Constant.Request.OPERATION_ABORT, cancellationToken);
4949
return string.Empty;
5050
}

0 commit comments

Comments
 (0)