Allow use of failOnError with Stream-based input #1691

This commit is contained in:
Lovell Fuller
2019-06-26 19:37:27 +01:00
parent 631a3597c7
commit 628996846d
3 changed files with 12 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ function _createInputDescriptor (input, inputOptions, containerOptions) {
} else if (is.plainObject(input) && !is.defined(inputOptions)) {
// Plain Object descriptor, e.g. create
inputOptions = input;
if (is.plainObject(inputOptions.raw)) {
if (is.plainObject(inputOptions.raw) || is.bool(inputOptions.failOnError)) {
// Raw Stream
inputDescriptor.buffer = [];
}