Skip to content

Commit 52cdcec

Browse files
committed
Add additional license failure details to exception
1 parent e873814 commit 52cdcec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tests/Framework/ManagedElasticsearch/Process/ElasticsearchNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ private void ValidateLicense(IElasticClient client, XplatManualResetEvent handle
264264
if (!license.IsValid)
265265
{
266266
exception = license.ApiCall.HttpStatusCode == 404
267-
? new Exception($"{exceptionMessageStart} but the license was not found!")
268-
: new Exception($"{exceptionMessageStart} but a {license.ApiCall.HttpStatusCode} was returned!");
267+
? new Exception($"{exceptionMessageStart} but the license was not found! Details: {license.DebugInformation}")
268+
: new Exception($"{exceptionMessageStart} but a {license.ApiCall.HttpStatusCode} was returned! Details: {license.DebugInformation}");
269269
}
270270
else if (license.License == null)
271271
exception = new Exception($"{exceptionMessageStart} but the license was deleted!");

0 commit comments

Comments
 (0)