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

empty commit message throws error #1693

Closed
devansvd opened this issue May 10, 2020 · 2 comments
Closed

empty commit message throws error #1693

devansvd opened this issue May 10, 2020 · 2 comments

Comments

@devansvd
Copy link

Empty commit message throws error in the console. Should handle error and throws some kind of user friendly error message.

TypeError: Cannot read property 'length' of null
    at exports.default (./node_modules/@commitlint/rules/lib/header-max-length.js:10:143)
    at results.filter.map.entry (./node_modules/@commitlint/lint/lib/index.js:151:17)
    at Array.map (<anonymous>)
    at Object.<anonymous> (./node_modules/@commitlint/lint/lib/index.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:68:7)
husky > commit-msg hook failed (add --no-verify to bypass)
@escapedcat
Copy link
Member

Duplicate of #615

@escapedcat escapedcat marked this as a duplicate of #615 May 10, 2020
@escapedcat escapedcat marked this as not a duplicate of #615 May 10, 2020
@escapedcat
Copy link
Member

escapedcat commented May 10, 2020

PR not released yet I guess:
#676

Let's leave this open till it's released.

@escapedcat escapedcat reopened this May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants