fix(profile/edit): surface real error message instead of generic

This commit is contained in:
chahinebrini 2026-05-08 22:52:57 +02:00
parent 59e97e004d
commit f3a316460f

View File

@ -105,9 +105,10 @@ export default function ProfileEditScreen() {
reload();
router.back();
} catch {
} catch (err: any) {
setUploading(false);
Alert.alert(t('common.error'), t('common.unknown_error'));
console.error('[profile/edit] save failed:', err?.message ?? err);
Alert.alert(t('common.error'), err?.message ?? t('common.unknown_error'));
} finally {
setSaving(false);
}