Skip to content

Commit

Permalink
fix!: remove console log and throw instead (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and bcoe committed Jan 11, 2020
1 parent f68a6fd commit 965beaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ function teenyRequest(
const multipart = reqOpts.multipart as RequestPart[];
if (reqOpts.multipart && multipart.length === 2) {
if (!callback) {
console.error('multipart without callback not implemented.');
return;
// TODO: add support for multipart uploads through streaming
throw new Error('Multipart without callback is not implemented.');
}
const boundary: string = uuid.v4();
(options.headers as Headers)[
Expand Down

0 comments on commit 965beaa

Please sign in to comment.