Skip to content
Myr

Unclutter error message in broken passThrough checks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by aweebit · committed by Abe Tomoaki · parent c60ce9d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: John Gee <john@ruru.gen.nz>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/command.js+1 added-1 removed
747 unmodified lines
748 */749750 _checkForBrokenPassThrough(command, parent) {751 if (parent && command._passThroughOptions && !parent._enablePositionalOptions) {752 throw new Error(`passThroughOptions cannot be used for '${command._name}' without turning on enablePositionalOptions for parent command${parent._name ? ` '${parent._name}'` : ''}`);752 throw new Error(`passThroughOptions cannot be used for '${command._name}' without turning on enablePositionalOptions for parent command(s)`);753 }754 }755756 /**
1452 unmodified lines