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