Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3384947
D11689.id39261.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D11689.id39261.diff
View Options
diff --git a/lib/utils/neynar-client.js b/lib/utils/neynar-client.js
--- a/lib/utils/neynar-client.js
+++ b/lib/utils/neynar-client.js
@@ -97,8 +97,11 @@
paginationCursor = json.result.next.cursor;
} catch (error) {
- console.log('Failed to fetch friend FIDs:', error);
- throw new Error(getMessageForException(error) ?? 'unknown');
+ console.log(
+ 'Failed to fetch friend FIDs:',
+ getMessageForException(error) ?? 'unknown',
+ );
+ throw error;
}
} while (paginationCursor);
@@ -140,8 +143,11 @@
paginationCursor = next.cursor;
} catch (error) {
- console.log('Failed to fetch followed Farcaster channels:', error);
- throw new Error(getMessageForException(error) ?? 'unknown');
+ console.log(
+ 'Failed to fetch followed Farcaster channels:',
+ getMessageForException(error) ?? 'unknown',
+ );
+ throw error;
}
} while (paginationCursor);
diff --git a/web/grpc/identity-service-client-wrapper.js b/web/grpc/identity-service-client-wrapper.js
--- a/web/grpc/identity-service-client-wrapper.js
+++ b/web/grpc/identity-service-client-wrapper.js
@@ -380,8 +380,11 @@
loginStartResponse =
await client.logInPasswordUserStart(loginStartRequest);
} catch (e) {
- console.log('Error calling logInPasswordUserStart:', e);
- throw new Error(getMessageForException(e) ?? 'unknown');
+ console.log(
+ 'Error calling logInPasswordUserStart:',
+ getMessageForException(e) ?? 'unknown',
+ );
+ throw e;
}
const finishRequestBytes = opaqueLogin.finish(
loginStartResponse.getOpaqueLoginResponse_asU8(),
@@ -396,8 +399,11 @@
loginFinishResponse =
await client.logInPasswordUserFinish(loginFinishRequest);
} catch (e) {
- console.log('Error calling logInPasswordUserFinish:', e);
- throw new Error(getMessageForException(e) ?? 'unknown');
+ console.log(
+ 'Error calling logInPasswordUserFinish:',
+ getMessageForException(e) ?? 'unknown',
+ );
+ throw e;
}
const userID = loginFinishResponse.getUserId();
@@ -430,8 +436,11 @@
try {
loginResponse = await this.unauthClient.logInWalletUser(loginRequest);
} catch (e) {
- console.log('Error calling logInWalletUser:', e);
- throw new Error(getMessageForException(e) ?? 'unknown');
+ console.log(
+ 'Error calling logInWalletUser:',
+ getMessageForException(e) ?? 'unknown',
+ );
+ throw e;
}
const userID = loginResponse.getUserId();
@@ -463,8 +472,11 @@
response =
await this.unauthClient.uploadKeysForRegisteredDeviceAndLogIn(request);
} catch (e) {
- console.log('Error calling uploadKeysForRegisteredDeviceAndLogIn:', e);
- throw new Error(getMessageForException(e) ?? 'unknown');
+ console.log(
+ 'Error calling uploadKeysForRegisteredDeviceAndLogIn:',
+ getMessageForException(e) ?? 'unknown',
+ );
+ throw e;
}
const userID = response.getUserId();
@@ -540,8 +552,11 @@
getFarcasterUsersRequest,
);
} catch (e) {
- console.log('Error calling getFarcasterUsers:', e);
- throw new Error(getMessageForException(e) ?? 'unknown');
+ console.log(
+ 'Error calling getFarcasterUsers:',
+ getMessageForException(e) ?? 'unknown',
+ );
+ throw e;
}
const farcasterUsersList =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 10:47 PM (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2598478
Default Alt Text
D11689.id39261.diff (3 KB)
Attached To
Mode
D11689: [lib/web] fix error handling indirection
Attached
Detach File
Event Timeline
Log In to Comment