Commit 1d9451b
crypto: better error message for createHash
calling digest or update on a hash object after digest has been called
now gives a topical error message instead of an error message saying that the
hash failed to initialize.
PR-URL: #6042
Reviewed-By: Brian White <[email protected]>
Reviewed-By: James M Snell <[email protected]>1 parent 7097212 commit 1d9451b
File tree
3 files changed
+25
-1
lines changed- src
- test/parallel
3 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3676 | 3676 | | |
3677 | 3677 | | |
3678 | 3678 | | |
| 3679 | + | |
3679 | 3680 | | |
3680 | 3681 | | |
3681 | 3682 | | |
| |||
3695 | 3696 | | |
3696 | 3697 | | |
3697 | 3698 | | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
3698 | 3706 | | |
3699 | 3707 | | |
3700 | 3708 | | |
| |||
3722 | 3730 | | |
3723 | 3731 | | |
3724 | 3732 | | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
3725 | 3736 | | |
3726 | 3737 | | |
3727 | 3738 | | |
| |||
3735 | 3746 | | |
3736 | 3747 | | |
3737 | 3748 | | |
3738 | | - | |
| 3749 | + | |
3739 | 3750 | | |
3740 | 3751 | | |
3741 | 3752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| 541 | + | |
541 | 542 | | |
542 | 543 | | |
543 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
0 commit comments