MOBILE-4270 core: Add missing error details

main
Noel De Martin 2023-04-12 16:31:39 +02:00
parent 7494f52c79
commit d3eb50471d
1 changed files with 3 additions and 1 deletions

View File

@ -752,7 +752,9 @@ export class CoreWSProvider {
throw this.createHttpError(error, error.status);
}
throw new CoreError(Translate.instant('core.serverconnection'));
throw new CoreError(Translate.instant('core.serverconnection', {
details: CoreTextUtils.getErrorMessageFromError(error) ?? 'Unknown error',
}));
});
}