Skip to content

Commit c80a26d

Browse files
Managed Challenge: log result code on failure
1 parent 6b5f8c2 commit c80a26d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Certify.Providers/DNS/CertifyManaged/DnsProviderCertifyManaged.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public async Task<ActionResult> CreateRecord(DnsRecord request)
141141
}
142142
else
143143
{
144-
return new ActionResult { IsSuccess = false, Message = $"Update failed: API URL is valid [{apiUri}], auth credentials are correct and authorised for a matching managed challenge." };
144+
return new ActionResult { IsSuccess = false, Message = $"Update failed [{result.StatusCode}] : check API URL is valid [{apiUri}], auth credentials are correct and authorised for a matching managed challenge." };
145145
}
146146
}
147147
catch (Exception exp)
@@ -185,7 +185,7 @@ public async Task<ActionResult> DeleteRecord(DnsRecord request)
185185
}
186186
else
187187
{
188-
return new ActionResult { IsSuccess = false, Message = $"Cleanup failed: API URL is valid [{apiUri}], auth credentials are correct and authorised for a matching managed challenge." };
188+
return new ActionResult { IsSuccess = false, Message = $"Cleanup failed [{result.StatusCode}] : check API URL is valid [{apiUri}], auth credentials are correct and authorised for a matching managed challenge." };
189189
}
190190
}
191191
catch (Exception exp)

0 commit comments

Comments
 (0)