File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
FirebaseAdmin/FirebaseAdmin/Auth Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ namespace FirebaseAdmin.Auth
29
29
/// </summary>
30
30
internal class FirebaseUserManager : IDisposable
31
31
{
32
- private const string INTERNAL_ERROR = "internal-error" ;
33
-
34
32
private const string ID_TOOLKIT_URL = "https://identitytoolkit.googleapis.com/v1/projects/{0}" ;
35
33
36
34
private readonly ConfigurableHttpClient _httpClient ;
@@ -57,12 +55,12 @@ public async Task UpdateUserAsync(UserRecord user)
57
55
var userResponse = resopnse . ToObject < UserRecord > ( ) ;
58
56
if ( userResponse . Uid != user . Uid )
59
57
{
60
- throw new FirebaseException ( INTERNAL_ERROR ) ;
58
+ throw new FirebaseException ( $ "Failed to update user: { user . Uid } " ) ;
61
59
}
62
60
}
63
- catch ( Exception )
61
+ catch ( Exception e )
64
62
{
65
- throw new FirebaseException ( INTERNAL_ERROR ) ;
63
+ throw new FirebaseException ( "Error while calling Firebase Auth service" , e ) ;
66
64
}
67
65
}
68
66
You can’t perform that action at this time.
0 commit comments