mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
improvement: check if response data is empty string
This commit is contained in:
@@ -932,8 +932,12 @@ export const secretQueueFactory = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const message =
|
const message =
|
||||||
(err instanceof AxiosError ? JSON.stringify(err?.response?.data) : (err as Error)?.message) ||
|
// eslint-disable-next-line no-nested-ternary
|
||||||
"Unknown error occurred.";
|
(err instanceof AxiosError
|
||||||
|
? err?.response?.data
|
||||||
|
? JSON.stringify(err?.response?.data)
|
||||||
|
: err?.message
|
||||||
|
: (err as Error)?.message) || "Unknown error occurred.";
|
||||||
|
|
||||||
await auditLogService.createAuditLog({
|
await auditLogService.createAuditLog({
|
||||||
projectId,
|
projectId,
|
||||||
|
|||||||
Reference in New Issue
Block a user