Skip to content

Commit

Permalink
Merge pull request #6 from madmas/patch-improve-android-intent-error-…
Browse files Browse the repository at this point in the history
…message

improve error handling: don't swallow the error message
  • Loading branch information
sc85 authored Jun 1, 2024
2 parents cd9f246 + b945bfa commit 8bf4505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/share-file.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ShareFile {
Application.android.foregroundActivity.startActivity(android.content.Intent.createChooser(intent, args.intentTitle ? args.intentTitle : 'Open file:'));
}
catch (e) {
console.log('ShareFile: Android intent failed');
console.log('ShareFile: Android intent failed: ' + e);
}
} else {
console.log('ShareFile: Please add a file path');
Expand Down

0 comments on commit 8bf4505

Please sign in to comment.