# Bug report ## Description / Observed Behavior Uncaught error is thrown inside the fetcher function by triggering `useSWRMutation`. ## Expected Behavior Error should be caught by SWR and returned as an `error` object like it happens in `useSWR` hook. ## Repro Steps / Code Example [CodeSandbox](https://codesandbox.io/s/festive-glade-kexfd6?file=/src/App.js) ## Additional Context SWR version: 2.0.1