Open mmcc opened 5 years ago
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.
endpoint
@mmcc is this still an issue? Would this line catch it? https://github.com/muxinc/upchunk/blob/638eb154683fb7beb1f63a5187eafe76ddaba529/src/upchunk.ts#L140
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.