Skip to content

errors: port internal/buffer errors to internal/errors - #11341

Closed
bougarfaoui wants to merge 4 commits into
nodejs:masterfrom
bougarfaoui:internal-errors
Closed

errors: port internal/buffer errors to internal/errors#11341
bougarfaoui wants to merge 4 commits into
nodejs:masterfrom
bougarfaoui:internal-errors

Conversation

@bougarfaoui

@bougarfaouibougarfaoui commented Feb 13, 2017

Copy link
Copy Markdown
  • Assign codes to errors reported by internal/buffer.js

Ref: #11273

cc @jasnell

Semver-major because this updates specific error messages and converts errors over to use the new internal/errors.js mechanism.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

errors, buffer

@nodejs-github-botnodejs-github-bot added buffer Issues and PRs related to the buffer subsystem. errors Issues and PRs related to JavaScript errors originated in Node.js core. labels Feb 13, 2017
Comment threadlib/internal/buffer.js Outdated

const code = icu.icuErrName(result);
const err = new Error(`Unable to transcode Buffer [${code}]`);
const err = new errors.Error('ERR_UNABlE_TRNSC_BUFF', code);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type in the code...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it would be better to fully spell out transcode and buffer

@bougarfaoui

Copy link
Copy Markdown
Author

@jasnell what do you mean by 'type in code...'

@joyeecheungjoyeecheung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should break test-icu-transcode.js, the test needs to be updated.

@joyeecheungjoyeecheung added the semver-major PRs that contain breaking changes and should be released in the next major version. label Feb 14, 2017
@joyeecheung

Copy link
Copy Markdown
Member

@jasnelljasnell added the blocked PRs that are blocked by other issues or PRs. label Apr 5, 2017
@fhinkel

Copy link
Copy Markdown
Member

I'm closing this because it's been inactive for quite a while. Feel free to reopen or ping a collaborator to get it reopened if needed.

@fhinkelfhinkel closed this Jun 7, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blockedPRs that are blocked by other issues or PRs.bufferIssues and PRs related to the buffer subsystem.errorsIssues and PRs related to JavaScript errors originated in Node.js core.semver-majorPRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@bougarfaoui@joyeecheung@fhinkel@jasnell@nodejs-github-bot