| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent aec340b commit fa5b65e
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -278,7 +278,7 @@ setImmediatePromise('foobar', { signal }) | |||
| 278 | 278 | .then(console.log) | |
| 279 | 279 | .catch((err) => { | |
| 280 | 280 | if (err.name === 'AbortError') | |
| 281 | - console.log('The immediate was aborted'); | ||
| 281 | + console.error('The immediate was aborted'); | ||
| 282 | 282 | }); | |
| 283 | 283 | ||
| 284 | 284 | ac.abort(); | |
@@ -296,7 +296,7 @@ setTimeoutPromise(1000, 'foobar', { signal }) | |||
| 296 | 296 | .then(console.log) | |
| 297 | 297 | .catch((err) => { | |
| 298 | 298 | if (err.name === 'AbortError') | |
| 299 | - console.log('The timeout was aborted'); | ||
| 299 | + console.error('The timeout was aborted'); | ||
| 300 | 300 | }); | |
| 301 | 301 | ||
| 302 | 302 | ac.abort(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ let tls; | |||
| 29 | 29 | try { | |
| 30 | 30 | tls = require('node:tls'); | |
| 31 | 31 | } catch (err) { | |
| 32 | - console.log('tls support is disabled!'); | ||
| 32 | + console.error('tls support is disabled!'); | ||
| 33 | 33 | } | |
| 34 | 34 | ``` | |
| 35 | 35 | ||
@@ -47,7 +47,7 @@ let tls; | |||
| 47 | 47 | try { | |
| 48 | 48 | tls = await import('node:tls'); | |
| 49 | 49 | } catch (err) { | |
| 50 | - console.log('tls support is disabled!'); | ||
| 50 | + console.error('tls support is disabled!'); | ||
| 51 | 51 | } | |
| 52 | 52 | ``` | |
| 53 | 53 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments