Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show error in test app when binary attachment is not present #193

Merged
merged 4 commits into from
Dec 15, 2017

Conversation

bmourat
Copy link
Contributor

@bmourat bmourat commented Dec 13, 2017

No description provided.

Copy link
Member

@dhei dhei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my comment on a minor wording improvement

@@ -31,7 +31,7 @@ export default class AttachmentsProvider {
try {
contents = await RNFS.readFile(path, DEFAULT_ENCODING);
} catch (error) {
console.error('Error while reading binary attachment file');
console.log('Error while reading binary attachment file');
Copy link
Member

@dhei dhei Dec 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log(`Error while reading binary attachment file, error: ${error}`);

@dhei dhei closed this Dec 15, 2017
@dhei dhei reopened this Dec 15, 2017
@@ -31,7 +31,7 @@ export default class AttachmentsProvider {
try {
contents = await RNFS.readFile(path, DEFAULT_ENCODING);
} catch (error) {
console.error('Error while reading binary attachment file');
console.log(`Error while reading binary attachment file, error: ${error}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make the same change for DemoApp/AttachmentsProvider.js ?

@dhei dhei merged commit b31eba4 into microsoft:develop Dec 15, 2017
@bmourat bmourat deleted the fix/error-when-binary-not-selected branch February 12, 2018 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants