upchunk icon indicating copy to clipboard operation
upchunk copied to clipboard

Fail sooner if the endpoint function doesn't return a string

Open mmcc opened this issue 6 years ago • 1 comments

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 avatar May 06 '19 06:05 mmcc

@mmcc is this still an issue? Would this line catch it? https://github.com/muxinc/upchunk/blob/638eb154683fb7beb1f63a5187eafe76ddaba529/src/upchunk.ts#L140

aminamos avatar Jan 27 '22 22:01 aminamos