Skip to content

Commit 8bf4505

Browse files
authored
Merge pull request #6 from madmas/patch-improve-android-intent-error-message
improve error handling: don't swallow the error message
2 parents cd9f246 + b945bfa commit 8bf4505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/share-file.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class ShareFile {
2323
Application.android.foregroundActivity.startActivity(android.content.Intent.createChooser(intent, args.intentTitle ? args.intentTitle : 'Open file:'));
2424
}
2525
catch (e) {
26-
console.log('ShareFile: Android intent failed');
26+
console.log('ShareFile: Android intent failed: ' + e);
2727
}
2828
} else {
2929
console.log('ShareFile: Please add a file path');

0 commit comments

Comments
 (0)