Skip to content

Commit 4631e68

Browse files
authored
Add chart type to error logs (#34454)
1 parent 07769d0 commit 4631e68

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix(chart-utilities): Add chart type to error logs",
4+
"packageName": "@fluentui/chart-utilities",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/charts/chart-utilities/src/PlotlySchemaConverter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const getValidTraces = (dataArr: Data[]) => {
200200
try {
201201
validator(data);
202202
} catch (error) {
203-
errorMessages.push(`data[${index}]: ${error}`);
203+
errorMessages.push(`data[${index}] - type: ${data.type}, ${error}`);
204204
return [-1, DEFAULT_CHART_TYPE];
205205
}
206206
}

0 commit comments

Comments
 (0)