Skip to content

Commit e55dac2

Browse files
committed
docs(README): minor fixes
1 parent 6a066d8 commit e55dac2

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -984,10 +984,7 @@ Expected errors are thrown using custom `Error` classes. You can check for any e
984984
Custom errors are designed in a way that `error.message` does not leak any user content. All errors do provide a `.toHumanMessage()` method if you want to provide a more helpful error message which includes both project data as well ase user-provided data.
985985

986986
```js
987-
import Project, {
988-
GitHubProjectError,
989-
GitHubProjectErrorUnknownFieldOption,
990-
} from "github-project";
987+
import Project, { GitHubProjectError } from "github-project";
991988

992989
try {
993990
await myScript(new Project(options));
@@ -1297,7 +1294,7 @@ try {
12971294
<td>
12981295
<code>constant</code>
12991296
</td>
1300-
<td><code>GitHubProjectErrorUnknownFieldOption</code></td>
1297+
<td><code>GitHubProjectUnknownFieldOptionError</code></td>
13011298
</tr>
13021299
<tr>
13031300
<th>
@@ -1420,7 +1417,7 @@ The stringified value set in the API call.
14201417

14211418
Example for `error.toHumanMessage()`:
14221419

1423-
> "<unknown>" is an invalid option for "Single select"
1420+
> "unknown" is an invalid option for "Single select"
14241421
14251422
#### `GitHubProjectUpdateReadOnlyFieldError`
14261423

@@ -1473,7 +1470,7 @@ try {
14731470
<td>
14741471
<code>constant</code>
14751472
</td>
1476-
<td><code>GitHubProjectErrorUnknownFieldOption</code></td>
1473+
<td><code>GitHubProjectUpdateReadOnlyFieldError</code></td>
14771474
</tr>
14781475
<tr>
14791476
<th>

0 commit comments

Comments
 (0)