Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why must there be " %s " to display the third argument #76

Open
menglingyu opened this issue Nov 10, 2019 · 0 comments
Open

Why must there be " %s " to display the third argument #76

menglingyu opened this issue Nov 10, 2019 · 0 comments

Comments

@menglingyu
Copy link

var err1 = new Error('No such file or directory');
var err2 = new VError(err1, 'failed to stat "%s"', '/junk');
var err3 = new VError(err2, 'request failed');
console.error(err3.message);  // request failed: failed to stat "/junk": No such file or directory

if  not "%s"
var err1 = new Error('No such file or directory');
var err2 = new VError(err1, 'failed to stat', '/junk');
var err3 = new VError(err2, 'request failed');

console.error(err3.message);  //request failed: failed to stat: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant