Skip to content

Commit

Permalink
More gracefully handle unexpected errors in JS interop
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Oct 13, 2021
1 parent 2cf2f27 commit 1e70242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/io/node.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ T _systemErrorToFileSystemException<T>(T callback()) {
try {
return callback();
} catch (error) {
var systemError = error as JsSystemError;
if (error is! JsSystemError) rethrow;
throw FileSystemException._(
_cleanErrorMessage(systemError), systemError.path);
_cleanErrorMessage(error), error.path);
}
}

Expand Down

0 comments on commit 1e70242

Please sign in to comment.