Fix [object Object] as error message

Any errors thrown here are already objects of shape { message: string }
This commit is contained in:
ekzyis 2023-08-11 05:03:10 +02:00
parent d92701c56f
commit 28b4588a12
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ export const useInvoiceable = (fn, options = defaultOptions) => {
}) })
return return
} }
throw new Error({ message: error.toString() }) throw error
} }
} }
setFnArgs(args) setFnArgs(args)