Skip to content

Commit

Permalink
fix: do not throw when you can't find an example
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX committed Mar 25, 2019
1 parent b9b3310 commit 06f9435
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/http/src/mocker/negotiator/NegotiatorHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ const helpers = {
schema: httpContent.schema,
};
} else {
throw new Error(`Not possible to generate a response for contentType: ${mediaType}`);
return {
code,
mediaType,
}
}
}
},
Expand Down

0 comments on commit 06f9435

Please sign in to comment.