testaro 53.0.4 → 53.0.6
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/netWatch.js +3 -7
- package/package.json +1 -1
package/netWatch.js
CHANGED
|
@@ -153,7 +153,7 @@ exports.netWatch = async (isForever, intervalInSeconds, isCertTolerant = true) =
|
|
|
153
153
|
console.log(`${logStart}no job to do`);
|
|
154
154
|
resolve(true);
|
|
155
155
|
}
|
|
156
|
-
// Otherwise,
|
|
156
|
+
// Otherwise, if it is a job:
|
|
157
157
|
else if (id) {
|
|
158
158
|
// Check it for validity.
|
|
159
159
|
const jobInvalidity = isValidJob(contentObj);
|
|
@@ -217,9 +217,7 @@ exports.netWatch = async (isForever, intervalInSeconds, isCertTolerant = true) =
|
|
|
217
217
|
}
|
|
218
218
|
// Otherwise, i.e. if it is not JSON:
|
|
219
219
|
catch(error) {
|
|
220
|
-
//
|
|
221
|
-
abort = true;
|
|
222
|
-
// Report it.
|
|
220
|
+
// Report this.
|
|
223
221
|
console.log(
|
|
224
222
|
`ERROR: ${reportLogStart}status ${repResponse.statusCode}, error message ${error.message}, and response ${content.slice(0, 1000)}\n`
|
|
225
223
|
);
|
|
@@ -253,10 +251,8 @@ exports.netWatch = async (isForever, intervalInSeconds, isCertTolerant = true) =
|
|
|
253
251
|
}
|
|
254
252
|
// Otherwise, i.e. if it is not JSON:
|
|
255
253
|
catch(error) {
|
|
256
|
-
// Abort the watch.
|
|
257
|
-
abort = true;
|
|
258
254
|
// Report this.
|
|
259
|
-
console.log(`ERROR:
|
|
255
|
+
console.log(`ERROR: ${logStart}status ${response.statusCode}, error message ${error.message}, and non-JSON response ${content.slice(0, 1000)}\n`);
|
|
260
256
|
resolve(true);
|
|
261
257
|
};
|
|
262
258
|
});
|