mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-20 00:37:35 +00:00
Update error-handling, show underprivileged notification error
This commit is contained in:
+5
-1
@@ -101,8 +101,12 @@ export const AddMachineIdentityModal = ({
|
||||
handlePopUpToggle("machineIdentity", false);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
const error = err as any;
|
||||
const text = error?.response?.data?.message
|
||||
?? "Failed to add machine identity to project";
|
||||
|
||||
createNotification({
|
||||
text: "Failed to add machine identity to project",
|
||||
text,
|
||||
type: "error"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user