diff --git a/lib/TuyaOAuth2Device.ts b/lib/TuyaOAuth2Device.ts index 77d3a30..0a0f6d2 100644 --- a/lib/TuyaOAuth2Device.ts +++ b/lib/TuyaOAuth2Device.ts @@ -214,7 +214,7 @@ export default class TuyaOAuth2Device extends OAuth2Device { }); }) .catch(err => { - this.error(`Error Syncing: ${err.message}`); + this.error('Error Syncing:', err); this.setUnavailable(err).catch(this.error); }); }