vovk-cli 0.0.1-draft.307 → 0.0.1-draft.309
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/dist/dev/index.mjs +3 -1
- package/package.json +2 -2
package/dist/dev/index.mjs
CHANGED
|
@@ -259,11 +259,13 @@ export class VovkDev {
|
|
|
259
259
|
log.debug(`Requesting schema for ${formatLoggedSegmentName(segmentName)} at ${endpoint}`);
|
|
260
260
|
try {
|
|
261
261
|
const resp = await fetch(endpoint);
|
|
262
|
+
const text = await resp.text();
|
|
262
263
|
if (resp.status !== 200) {
|
|
263
264
|
const probableCause = {
|
|
264
265
|
404: 'The segment did not compile or config.origin is wrong.',
|
|
265
266
|
}[resp.status];
|
|
266
|
-
log.warn(`Schema request to ${formatLoggedSegmentName(segmentName)} failed with status code ${resp.status} but expected 200.${probableCause ? ` Probable cause: ${probableCause}` : ''}
|
|
267
|
+
log.warn(`Schema request to ${endpoint} for ${formatLoggedSegmentName(segmentName)} failed with status code ${resp.status} but expected 200.${probableCause ? ` Probable cause: ${probableCause}` : ''}. Response text will be logged below on "debug" level.`);
|
|
268
|
+
log.debug(`Response from ${formatLoggedSegmentName(segmentName)}: ${text}`);
|
|
267
269
|
return { isError: true };
|
|
268
270
|
}
|
|
269
271
|
let segmentSchema = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vovk-cli",
|
|
3
|
-
"version": "0.0.1-draft.
|
|
3
|
+
"version": "0.0.1-draft.309",
|
|
4
4
|
"bin": {
|
|
5
5
|
"vovk": "./dist/index.mjs"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"vovk": "^3.0.0-draft.352"
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
41
|
-
"vovk-python": "^0.0.1-draft.
|
|
41
|
+
"vovk-python": "^0.0.1-draft.58"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@iarna/toml": "^2.2.5",
|