refactor: 优化错误提示

This commit is contained in:
Diego2098
2024-06-10 22:53:48 +08:00
parent 0f7d216379
commit e33a81ad36

View File

@@ -42,7 +42,7 @@ public static class VariableValuePraseExtensions
}
catch (Exception ex)
{
return new OperResult($"Error parsing byte array, array length: {buffer.Length}, index: {index}, type: {dataType}", ex);
return new OperResult($"Error parsing byte array, address: {variable.RegisterAddress}, array length: {buffer.Length}, index: {index}, type: {dataType}", ex);
}
}
return new();