Skip to content

Commit 4358a6b

Browse files
committed
chore: minor improvements
1 parent 1437e7b commit 4358a6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const runBulkImportOperation = async (id: string, payload: any): Promise<
110110
throwHttpErrors: false
111111
})
112112

113-
if (response.statusCode <= 500 && response.statusCode >= 400) {
113+
if (response.statusCode < 500 && response.statusCode >= 400) {
114114
throw new Error(`Failed to run the bulk import operation: ${response.statusCode} ${JSON.stringify(response.body, null, 2)}`)
115115
}
116116

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ bulkImport
7373
}
7474

7575
if (!operation.schema) {
76-
throw new Error('Bulk import operation does not have a JSON schema. This is an API error')
76+
throw new Error('Bulk import operation does not have a JSON schema for data validation. This is an API error')
7777
}
7878

7979
// If data is provided, validate against JSON Schema

0 commit comments

Comments
 (0)