Skip to content

Commit

Permalink
correct error message for #2101
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored and lukastaegert committed Apr 16, 2018
1 parent d06361b commit 8cb99c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/src/run/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function build(
const useStdout =
outputOptions.length === 1 &&
!outputOptions[0].file &&
!outputOptions[0].dir &&
inputOptions.input instanceof Array === false &&
typeof inputOptions.input !== 'object';

Expand Down
2 changes: 1 addition & 1 deletion src/rollup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default function rollup(
if (!outputOptions || (!outputOptions.file && !outputOptions.dest)) {
error({
code: 'MISSING_OPTION',
message: 'You must specify output.file'
message: 'You must specify output.file when doing a single-file input build'
});
}

Expand Down

0 comments on commit 8cb99c4

Please sign in to comment.