From 2277e6783462efeb23b5ef703a7e390ad1739a47 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Fri, 17 Nov 2023 21:34:53 +0100 Subject: [PATCH] fix: improve error message (#1219) --- src/GoogleSignin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GoogleSignin.ts b/src/GoogleSignin.ts index 156817aa..a7256bb7 100644 --- a/src/GoogleSignin.ts +++ b/src/GoogleSignin.ts @@ -16,8 +16,8 @@ class GoogleSignin { constructor() { if (__DEV__ && !RNGoogleSignin) { - console.error( - `RN GoogleSignin native module is not correctly linked. Please read the readme, setup and troubleshooting instructions carefully or try manual linking.`, + throw new Error( + `RN GoogleSignin native module is not correctly linked. Please read the readme, setup and troubleshooting instructions carefully.\nIf you are using Expo, make sure you are using Custom dev client, not Expo go.`, ); } }