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

doc: use console.error for error case in http2 #45577

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/api/http2.md
Expand Up @@ -43,7 +43,7 @@ let http2;
try {
http2 = require('node:http2');
} catch (err) {
console.log('http2 support is disabled!');
console.error('http2 support is disabled!');
}
```

Expand All @@ -61,7 +61,7 @@ let http2;
try {
http2 = await import('node:http2');
} catch (err) {
console.log('http2 support is disabled!');
console.error('http2 support is disabled!');
}
```

Expand Down Expand Up @@ -1850,7 +1850,7 @@ server.on('stream', (stream) => {
}
} catch (err) {
// Perform actual error handling.
console.log(err);
console.error(err);
}
stream.end();
}
Expand Down