Skip to content

Commit

Permalink
a few more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyle committed Nov 20, 2023
1 parent 60d348a commit 7fa615e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,13 @@ public async Task UpdateDigitalTwinAsync(string modelID, string instanceID, stri
}
}

string errorMessage = $"Failed to parse {data}. Cannot set instance {instanceID}{instancePropertyPath} based on model {modelID} to {data}";
_logger.LogError(errorMessage);
throw new NotSupportedException(errorMessage);
_logger.LogError(
"Failed to parse data. Cannot set instance {InstanceID}{InstancePropertyPath} based on model {ModelID} to {Data}",
instanceID,
instancePropertyPath,
modelID,
data);
throw new NotSupportedException();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public override async Task<UpdateDigitalTwinResponse> UpdateDigitalTwin(UpdateDi
}
catch (Exception ex)
{
_logger.LogError("Error updating digital twin: {Message}", ex.Message);
_logger.LogError("Error updating digital twin: {ExceptionType}: {Message}", ex.GetType(), ex.Message);
throw;
}

Expand Down

0 comments on commit 7fa615e

Please sign in to comment.