Skip to content

Commit

Permalink
Merge pull request #2325 from dpalou/MOBILE-3269
Browse files Browse the repository at this point in the history
MOBILE-3269 core: Fix error displayed when capturing media
  • Loading branch information
jleyva authored Mar 25, 2020
2 parents a6a5595 + 7be14a3 commit 1005690
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/fileuploader/providers/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,10 @@ export class CoreFileUploaderHelperProvider {
// Error, not cancelled.
this.logger.error('Error while recording audio/video', error);

return Promise.reject(this.translate.instant(defaultMessage));
const message = error.code == 20 ? this.translate.instant('core.fileuploader.errornoapp') :
(error.message || this.translate.instant(defaultMessage));

return Promise.reject(message);
} else {
this.logger.debug('Cancelled');
}
Expand Down

0 comments on commit 1005690

Please sign in to comment.