improve error handling (#2839)

This commit is contained in:
Aiden McClelland
2025-02-24 13:49:16 -07:00
committed by GitHub
parent f55af7da4c
commit 737beb11f6
3 changed files with 4 additions and 3 deletions

View File

@@ -265,6 +265,7 @@ export class SubContainer implements ExecSpawnable {
if (options?.input) {
await new Promise<null>((resolve, reject) => {
try {
child.stdin.on("error", (e) => reject(e))
child.stdin.write(options.input, (e) => {
if (e) {
reject(e)

View File

@@ -1,12 +1,12 @@
{
"name": "@start9labs/start-sdk",
"version": "0.3.6-beta.12",
"version": "0.3.6-beta.13",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@start9labs/start-sdk",
"version": "0.3.6-beta.12",
"version": "0.3.6-beta.13",
"license": "MIT",
"dependencies": {
"@iarna/toml": "^2.2.5",

View File

@@ -1,6 +1,6 @@
{
"name": "@start9labs/start-sdk",
"version": "0.3.6-beta.12",
"version": "0.3.6-beta.13",
"description": "Software development kit to facilitate packaging services for StartOS",
"main": "./package/lib/index.js",
"types": "./package/lib/index.d.ts",