mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toolkit: Prevent toolkit from crashing when an error occur. (#40627)
This commit is contained in:
parent
70f68289f5
commit
44c4d5d6fc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user