Merge pull request #2325 from dpalou/MOBILE-3269
MOBILE-3269 core: Fix error displayed when capturing mediamain
commit
10056908f0
|
@ -399,7 +399,10 @@ export class CoreFileUploaderHelperProvider {
|
||||||
// Error, not cancelled.
|
// Error, not cancelled.
|
||||||
this.logger.error('Error while recording audio/video', error);
|
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 {
|
} else {
|
||||||
this.logger.debug('Cancelled');
|
this.logger.debug('Cancelled');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue