@testomatio/reporter 1.5.1 → 1.5.2
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 +3 -2
- package/package.json +1 -1
package/lib/pipe/testomatio.js
CHANGED
|
@@ -216,10 +216,11 @@ 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
220
|
console.error(
|
|
220
221
|
APP_PREFIX,
|
|
221
|
-
'Error creating Testomat.io report, please check if your API key is valid. Skipping report
|
|
222
|
-
|
|
222
|
+
'Error creating Testomat.io report, please check if your API key is valid. Skipping report\n',
|
|
223
|
+
errorInfo || JSON.stringify(err),
|
|
223
224
|
);
|
|
224
225
|
printCreateIssue(err);
|
|
225
226
|
}
|