mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 20:21:18 +00:00
Update error-handling, show underprivileged notification error
This commit is contained in:
+5
-2
@@ -236,9 +236,12 @@ export const AddMachineIdentityModal = ({
|
||||
|
||||
reset();
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
const error = err as any;
|
||||
const text = error?.response?.data?.message
|
||||
?? `Failed to ${popUp?.machineIdentity?.data ? "updated" : "created"} machine identity`;
|
||||
|
||||
createNotification({
|
||||
text: `Failed to ${popUp?.machineIdentity?.data ? "updated" : "created"} machine identity`,
|
||||
text,
|
||||
type: "error"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user