Toolkit: Prevent toolkit from crashing when an error occur. (#40627)
This commit is contained in:
1 parent
70f68289f5
commit
44c4d5d6fc
1 file changed
+1
-1
@@ -76,7 +76,7 @@ export async function signManifest(manifest: ManifestInfo): Promise<string> {
|
||||
|
||||
return info.data;
|
||||
} catch (err: any) {
|
||||
if ((err.response && err.response.data) || err.response.data.message) {
|
||||
if (err.response?.data?.message) {
|
||||
throw new Error('Error signing manifest: ' + err.response.data.message);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user