Fix [object Object] as error message
Any errors thrown here are already objects of shape { message: string }
This commit is contained in:
parent
d92701c56f
commit
28b4588a12
|
@ -231,7 +231,7 @@ export const useInvoiceable = (fn, options = defaultOptions) => {
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
throw new Error({ message: error.toString() })
|
throw error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setFnArgs(args)
|
setFnArgs(args)
|
||||||
|
|
Loading…
Reference in New Issue