upchunk
upchunk copied to clipboard
Fail sooner if the endpoint function doesn't return a string
Currently if someone passes a fetching function as the endpoint option and that function fails to return a URL, UpChunk will merrily continue on and try to upload. We should fail faster with a helpful error message.
@mmcc is this still an issue? Would this line catch it? https://github.com/muxinc/upchunk/blob/638eb154683fb7beb1f63a5187eafe76ddaba529/src/upchunk.ts#L140