aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/login.tsx4
-rw-r--r--src/app/register.tsx2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/app/login.tsx b/src/app/login.tsx
index 15ec3be..16b6777 100644
--- a/src/app/login.tsx
+++ b/src/app/login.tsx
@@ -43,8 +43,8 @@ export default function LoginScreen() {
} else {
router.replace("/");
}
- } catch (error) {
- Alert.alert("Erro", "Falha ao fazer login. Verifique suas credenciais e tente novamente.");
+ } catch (error: any) {
+ Alert.alert("Erro", error.message || "Falha ao fazer login. Verifique suas credenciais e tente novamente.");
} finally {
setIsLoading(false);
}
diff --git a/src/app/register.tsx b/src/app/register.tsx
index aac588d..108761f 100644
--- a/src/app/register.tsx
+++ b/src/app/register.tsx
@@ -38,7 +38,7 @@ export default function RegisterScreen() {
router.replace('/');
}
} catch (err: any) {
- Alert.alert('Erro no cadastro', 'Verifique seus dados.');
+ Alert.alert('Erro no cadastro', err.message || 'Verifique seus dados.');
setIsLoading(false);
}
}