@toon-protocol/townhouse 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/dist/compose/townhouse-hs.yml +8 -8
- package/dist/image-manifest.json +10 -10
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -689,8 +689,11 @@ async function handleNodeAdd(type, options) {
|
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
691
691
|
if (response.status === 409 && body.error === "node_type_in_use") {
|
|
692
|
+
const existingId = body.existingId ?? body.type ?? type;
|
|
692
693
|
process.stderr.write(
|
|
693
|
-
`${xMark}
|
|
694
|
+
`${xMark} A '${body.type}' node already exists (id '${existingId}'). Only one node per type is supported.
|
|
695
|
+
See your nodes: townhouse node list
|
|
696
|
+
Recreate it: townhouse node remove ${existingId} && townhouse node add ${body.type}
|
|
694
697
|
`
|
|
695
698
|
);
|
|
696
699
|
process.exitCode = 1;
|