Skip to content

Commit 033bb57

Browse files
committed
ltErrorRemark fix for app automation
1 parent a8d5362 commit 033bb57

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/service.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ export default class LambdaRestService {
177177
++this._failures;
178178
this._failReasons.push((error && error.message) || 'Unknown Error')
179179
this._error=error.message || 'Unknown Error';
180+
if (this._ltErrorRemark && this._error !== null && this._error !== undefined) {
181+
this._setSessionRemarks(this._error);
182+
}
180183
}
181184
}
182185

@@ -283,10 +286,6 @@ export default class LambdaRestService {
283286
body = this.getBody({ fullTitle, status, calledOnReload, browserName });
284287
}
285288
try {
286-
if(this._ltErrorRemark && this._error !== null && this._error !== undefined)
287-
{
288-
await this._setSessionRemarks(this._error);
289-
}
290289
await updateSessionById(sessionId, body, this._lambdaCredentials);
291290
} catch (ex) {
292291
console.log(ex);

0 commit comments

Comments
 (0)