@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.
@@ -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
- const errorInfo = `${err?.response?.statusText} ${chalk.red(err?.status)} ${err.message}`;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "1.5.3-beta1-duation",
3
+ "version": "1.5.3",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "typings": "typings/index.d.ts",