fix(profile/edit): surface real error message instead of generic
This commit is contained in:
parent
59e97e004d
commit
f3a316460f
@ -105,9 +105,10 @@ export default function ProfileEditScreen() {
|
|||||||
|
|
||||||
reload();
|
reload();
|
||||||
router.back();
|
router.back();
|
||||||
} catch {
|
} catch (err: any) {
|
||||||
setUploading(false);
|
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 {
|
} finally {
|
||||||
setSaving(false);
|
setSaving(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user