Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: use console.error for error case in http2
console.error is more suitable than console.log for error case.
  • Loading branch information
deokjinkim committed Nov 22, 2022
commit f590bb27e924eff7ea72476d2f01d90e643f92ed
6 changes: 3 additions & 3 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
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