Skip to content

Commit

Permalink
chore: Additional logging for publish error (#4162)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Jan 17, 2025
1 parent cde4c94 commit a6ecbdc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import DialogContent from "@mui/material/DialogContent";
import DialogTitle from "@mui/material/DialogTitle";
import Link from "@mui/material/Link";
import Typography from "@mui/material/Typography";
import { logger } from "airbrake";
import { AxiosError } from "axios";
import { useStore } from "pages/FlowEditor/lib/store";
import { formatLastPublishMessage } from "pages/FlowEditor/utils";
Expand Down Expand Up @@ -66,6 +67,7 @@ export const PublishFlowButton: React.FC<{ previewURL: string }> = ({

if (error instanceof AxiosError) {
alert(error.response?.data?.error);
logger.notify(error);
} else {
alert(
`Error checking for changes to publish. Confirm that your graph does not have any corrupted nodes and that all external portals are valid. \n${error}`,
Expand Down

0 comments on commit a6ecbdc

Please sign in to comment.