Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 16deaf6

Browse files
committed
Merge pull request #2639 from connork09/850
Fixed issue #850 - Remap ERR_UNSUPPORTED_ENCODING to NOT_READABLE_ERR.
2 parents 19780eb + e2a8470 commit 16deaf6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/file/NativeFileSystem.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,8 @@ define(function (require, exports, module) {
228228
case brackets.fs.ERR_CANT_READ:
229229
error = NativeFileError.NOT_READABLE_ERR;
230230
break;
231-
// It might seem like you should use NativeFileError.ENCODING_ERR for this,
232-
// but according to the spec that's for malformed URLs.
233231
case brackets.fs.ERR_UNSUPPORTED_ENCODING:
234-
error = NativeFileError.SECURITY_ERR;
232+
error = NativeFileError.NOT_READABLE_ERR;
235233
break;
236234
case brackets.fs.ERR_CANT_WRITE:
237235
error = NativeFileError.NO_MODIFICATION_ALLOWED_ERR;

0 commit comments

Comments
 (0)