testaro 8.1.2 → 8.1.3
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/package.json +1 -1
- package/watch.js +9 -1
package/package.json
CHANGED
package/watch.js
CHANGED
|
@@ -78,6 +78,10 @@ const checkNetJob = async () => {
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
|
+
request.on('error', error => {
|
|
82
|
+
console.log(`ERROR checking for a network job (${error.message})`);
|
|
83
|
+
resolve({});
|
|
84
|
+
});
|
|
81
85
|
request.end();
|
|
82
86
|
});
|
|
83
87
|
console.log(`Network job ${script.id ? '' : 'not '}found`);
|
|
@@ -127,9 +131,13 @@ const writeNetReport = async report => {
|
|
|
127
131
|
});
|
|
128
132
|
});
|
|
129
133
|
report.agent = agent;
|
|
134
|
+
request.on('error', error => {
|
|
135
|
+
console.log(`ERROR submitting job report (${error.message})`);
|
|
136
|
+
resolve({});
|
|
137
|
+
});
|
|
130
138
|
request.write(JSON.stringify(report, null, 2));
|
|
131
139
|
request.end();
|
|
132
|
-
console.log(`Report ${report.
|
|
140
|
+
console.log(`Report ${report.job.id} submitted`);
|
|
133
141
|
});
|
|
134
142
|
return ack;
|
|
135
143
|
};
|