Skip to content

Commit

Permalink
fix(core): support onerror for js
Browse files Browse the repository at this point in the history
  • Loading branch information
etkmao committed Sep 1, 2023
1 parent 357c7d3 commit 8934597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/vfs/ios/VFSUriLoader.mm
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
string_view uri(NSStringToU16StringView([[response URL] absoluteString]));
DoRequestTimePerformanceCallback(uri, startPoint, endPoint);
if (error.code != 0) {
string_view msg([error.localizedDescription UTF8String]?:"");
DoRequestErrorCallback(uri, static_cast<int32_t>(error.code), msg);
string_view msg([error.localizedDescription UTF8String]?:"");
DoRequestErrorCallback(uri, static_cast<int32_t>(error.code), msg);
}
if (completion) {
completion(data, response, error);
Expand Down

0 comments on commit 8934597

Please sign in to comment.