luxlabs 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/ab-tests.js +2 -1
- package/package.json +1 -1
package/commands/ab-tests.js
CHANGED
|
@@ -503,7 +503,8 @@ async function callLifecycleApi(endpoint, testId, interfaceId, creds, testData =
|
|
|
503
503
|
const data = await response.json();
|
|
504
504
|
|
|
505
505
|
if (!response.ok) {
|
|
506
|
-
|
|
506
|
+
const errorMsg = data.details || data.error || `API returned ${response.status}`;
|
|
507
|
+
throw new Error(errorMsg);
|
|
507
508
|
}
|
|
508
509
|
|
|
509
510
|
return data;
|
package/package.json
CHANGED