@actyx/sdk
Version:
Actyx SDK
14 lines • 662 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.decorateEConnRefused = void 0;
/*
* Actyx SDK: Functions for writing distributed apps
* deployed on peer-to-peer networks, without any servers.
*
* Copyright (C) 2021 Actyx AG
*/
const decorateEConnRefused = (errMsg, triedToContact) => errMsg && typeof errMsg === 'string' && errMsg.includes('ECONNREFUSED')
? `Error: unable to connect to Actyx at ${triedToContact}. Is the service running? -- Error: ${errMsg}`
: `Error in connection to Actyx (${triedToContact}): ${errMsg}`;
exports.decorateEConnRefused = decorateEConnRefused;
//# sourceMappingURL=errors.js.map