Tags: cuulee/slonik
Tags
feat: remove ability to customise errors BREAKING CHANGE: Removing ability to configure NotFoundError. Instead use a helper function to check if error is of certain type, e.g. ```js // @flow import { NotFoundError as SlonikNotFoundError } from 'slonik'; import { NotFoundError as LocalNotFoundError } from '../types'; export default (error: Error) => { return error instanceof SlonikNotFoundError || error instanceof LocalNotFoundError; }; ```
PreviousNext