@testomatio/reporter 1.5.3-beta1-duation → 1.5.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/lib/pipe/testomatio.js +6 -3
- package/package.json +1 -1
package/lib/pipe/testomatio.js
CHANGED
|
@@ -216,11 +216,14 @@ class TestomatioPipe {
|
|
|
216
216
|
process.env.runId = this.runId;
|
|
217
217
|
debug('Run created', this.runId);
|
|
218
218
|
} catch (err) {
|
|
219
|
-
|
|
219
|
+
console.info('-'.repeat(33), 'error', '-'.repeat(33));
|
|
220
|
+
console.log(err);
|
|
221
|
+
console.info('-'.repeat(33), 'error', '-'.repeat(33));
|
|
222
|
+
if (!this.apiKey) console.error('Testomat.io API key is not set');
|
|
223
|
+
if (!this.apiKey?.startsWith('tstmt')) console.error('Testomat.io API key is invalid');
|
|
220
224
|
console.error(
|
|
221
225
|
APP_PREFIX,
|
|
222
|
-
'Error creating Testomat.io report, please check if your API key is valid. Skipping report\n'
|
|
223
|
-
errorInfo || JSON.stringify(err),
|
|
226
|
+
'Error creating Testomat.io report (see details above), please check if your API key is valid. Skipping report\n'
|
|
224
227
|
);
|
|
225
228
|
printCreateIssue(err);
|
|
226
229
|
}
|