UNPKG

homebridge-tuya-laundry

Version:

Allows washer/dryer cycle completion notifications using Tuya smart plugs with power meter, now using local control.

21 lines 557 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.errorStack = exports.errorMessage = void 0; function errorMessage(e) { if (e instanceof Error && e.message) return e.message; if (typeof e === 'string') return e; try { return JSON.stringify(e); } catch (_a) { return String(e); } } exports.errorMessage = errorMessage; function errorStack(e) { return e instanceof Error ? e.stack : undefined; } exports.errorStack = errorStack; //# sourceMappingURL=errors.js.map