Commit b35c27a
fix(error): ensure name is a string before calling replace in getError
Prevents "name.replace is not a function" error when code passed to
`IndiekitError`` is not a string (e.g., when `response.statusText`` is
undefined in some edge cases)1 parent dfd53c0 commit b35c27a
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
0 commit comments