fix: Inconsistent error codes when missing file - #14
Merged
Conversation
OS-ruimoreiramendes
marked this pull request as ready for review
February 12, 2026 14:43
andredestro
requested changes
Feb 12, 2026
andredestro
approved these changes
Feb 13, 2026
andredestro
left a comment
Contributor
There was a problem hiding this comment.
I just left two suggestions unrelated to your changes, and it's completely fine if you choose not to include them.
andredestro
approved these changes
Feb 13, 2026
Co-authored-by: André Destro <254790+andredestro@users.noreply.github.com>
Co-authored-by: André Destro <254790+andredestro@users.noreply.github.com>
Contributor
Author
|
As discussed on Slack, I added new tests and fix the ones that were failing after introducing the new validations. |
andredestro
approved these changes
Feb 13, 2026
capacitor-bot
pushed a commit
that referenced
this pull request
Feb 13, 2026
## [1.1.1](1.1.0...1.1.1) (2026-02-13) ### Bug Fixes * Inconsistent error codes when missing file ([#14](#14)) ([75d2681](75d2681))
capacitor-bot
pushed a commit
that referenced
this pull request
Feb 13, 2026
## [1.1.1](1.1.0...1.1.1) (2026-02-13) ### Bug Fixes * Inconsistent error codes when missing file ([#14](#14)) ([75d2681](75d2681))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes inconsistent error handling in iOS where certain filesystem operations were returning a generic operationFailed error (OS-PLUG-FILE-0013) instead of the expected fileNotFound error (OS-PLUG-FILE-0008) when the target file didn't exist.
As part of this fix, filesystem methods were tested on both iOS and Android to ensure error code parity across platforms.
No additional inconsistencies were identified beyond the ones addressed in this PR.
Context
Type of changes
Tests
Use the capacitor-filesystem example app (iOS) on branch https://github.com/ionic-team/capacitor-filesystem/tree/temp/RMET-4962/error-codes
Checklist
RNMT-XXXX <title>