@@ -135,7 +135,7 @@ export class myQ {
135
135
} ) ;
136
136
137
137
if ( ! response ) {
138
- this . log ( "myQ API error : unable to authenticate. Will retry later." ) ;
138
+ this . log ( "myQ API: unable to authenticate. Will retry later." ) ;
139
139
return false ;
140
140
}
141
141
@@ -219,7 +219,7 @@ export class myQ {
219
219
} ) ;
220
220
221
221
if ( ! response ) {
222
- this . log ( "myQ API error : unable to login. Will refresh the security token and retry later." ) ;
222
+ this . log ( "myQ API: unable to login. Acquiring a new security token and retrying later." ) ;
223
223
await this . acquireSecurityToken ( ) ;
224
224
return false ;
225
225
}
@@ -277,7 +277,7 @@ export class myQ {
277
277
} ) ;
278
278
279
279
if ( ! response ) {
280
- this . log ( "myQ API error : unable to refresh. Will refresh the security token and retry later." ) ;
280
+ this . log ( "myQ API: unable to refresh. Acquiring a new security token and retrying later." ) ;
281
281
await this . acquireSecurityToken ( ) ;
282
282
return false ;
283
283
}
@@ -358,7 +358,7 @@ export class myQ {
358
358
} ) ;
359
359
360
360
if ( ! response ) {
361
- this . log ( "myQ API error : unable to query device. Will refresh the security token and retry later." ) ;
361
+ this . log ( "myQ API: unable to query device. Acquiring a new security token and retrying later." ) ;
362
362
await this . acquireSecurityToken ( ) ;
363
363
return false ;
364
364
}
@@ -399,7 +399,7 @@ export class myQ {
399
399
} ) ;
400
400
401
401
if ( ! response ) {
402
- this . log ( "myQ API error : unable to execute command. Will refresh the security token and retry later." ) ;
402
+ this . log ( "myQ API: unable to execute command. Acquiring a new security token and retrying later." ) ;
403
403
await this . acquireSecurityToken ( ) ;
404
404
return false ;
405
405
}
@@ -504,7 +504,7 @@ export class myQ {
504
504
505
505
return response ;
506
506
} catch ( error ) {
507
- this . log . error ( "Fetch error encountered: " + error ) ;
507
+ this . log . error ( error ) ;
508
508
return null as unknown as Promise < Response > ;
509
509
}
510
510
}
0 commit comments