Skip to content

Commit

Permalink
change warn msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Aug 2, 2024
1 parent f54c790 commit 6b8cfa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/asyncOpenURL/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const asyncOpenURL: AsyncOpenURL = (promise, url) => {
Linking.openURL(typeof url === 'string' ? url : url(params));
})
.catch(() => {
Log.warn('[asyncOpenURL] Promise rejected, not opening URL', {url});
Log.warn('[asyncOpenURL] error occured while opening URL', {url});
});
};

Expand Down
4 changes: 2 additions & 2 deletions src/libs/asyncOpenURL/index.website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const asyncOpenURL: AsyncOpenURL = (promise, url, shouldSkipCustomSafariLogic) =
Linking.openURL(typeof url === 'string' ? url : url(params));
})
.catch(() => {
Log.warn('[asyncOpenURL] Promise rejected, not opening URL', {url});
Log.warn('[asyncOpenURL] error occured while opening URL', {url});
});
} else {
const windowRef = window.open();
Expand All @@ -32,7 +32,7 @@ const asyncOpenURL: AsyncOpenURL = (promise, url, shouldSkipCustomSafariLogic) =
})
.catch(() => {
windowRef?.close();
Log.warn('[asyncOpenURL] Promise rejected, not opening URL', {url});
Log.warn('[asyncOpenURL] error occured while opening URL', {url});
});
}
};
Expand Down

0 comments on commit 6b8cfa5

Please sign in to comment.