Skip to content

Commit c902882

Browse files
authored
Fix error message formatting in delete method (#676)
## Description Currently, the error here looks like this: <img width="558" height="124" alt="image" src="https://github.com/user-attachments/assets/64df8652-30f2-46eb-9abe-430406a4a6a4" /> ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [x] Other (chores, tests, code style improvements etc.) ### Tested on - [x] iOS - [x] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [x] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent 956ecae commit c902882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-executorch/src/controllers/OCRController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class OCRController {
9696
if (this.isGenerating) {
9797
throw new Error(
9898
getError(ETError.ModelGenerating) +
99-
'You cannot delete the model. You must wait until the generating is finished.'
99+
', You cannot delete the model. You must wait until the generating is finished.'
100100
);
101101
}
102102
this.nativeModule.unload();

0 commit comments

Comments
 (0)