Farmbot-Web-App/frontend/toast_errors.ts

8 lines
228 B
TypeScript
Raw Permalink Normal View History

import { UnsafeError } from "./interfaces";
import { prettyPrintApiErrors } from "./util";
2019-06-24 15:39:49 -06:00
import { error } from "./toast/toast";
export function toastErrors({ err }: UnsafeError) {
return error(prettyPrintApiErrors(err));
}