Skip to content

Commit

Permalink
chore(writeReport): add a throw in case the xcode record failed
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeEgret committed Aug 2, 2023
1 parent 2d3ebad commit 6d5d4c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ios-poc/src/writeReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export const writeReport = (inputFileName: string, outputFileName: string) => {
};
const parser = new XMLParser(options);
const jsonObject: Result = parser.parse(xml);
if (!jsonObject.result.node.row) {
throw new Error("No rows in the xml file");
}

const fistSampleTime: number =
jsonObject.result.node.row[0].sampleTime.value / NANOSEC_TO_MILLISEC;
Expand Down

0 comments on commit 6d5d4c5

Please sign in to comment.