Skip to content

Commit 28d5723

Browse files
committed
OBH-6969 Add a more meaningful error message
1 parent 8804d66 commit 28d5723

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/ProductService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ProductService extends BaseServiceModel {
3737

3838
return await parseRequestToJSON(apiResponse);
3939
} catch (error) {
40-
throw new Error('Problem importing products');
40+
throw new Error(`Problem importing products: ${error instanceof Error ? error.message : String(error)}`);
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)