mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
logging
This commit is contained in:
parent
dac99e0c1b
commit
052e6e3cd8
1 changed files with 8 additions and 0 deletions
|
|
@ -267,6 +267,14 @@ export class PtyManager extends EventEmitter {
|
||||||
env: ptyEnv,
|
env: ptyEnv,
|
||||||
});
|
});
|
||||||
} catch (spawnError) {
|
} catch (spawnError) {
|
||||||
|
// Debug log the raw error first
|
||||||
|
logger.debug('Raw spawn error:', {
|
||||||
|
type: typeof spawnError,
|
||||||
|
isError: spawnError instanceof Error,
|
||||||
|
errorString: String(spawnError),
|
||||||
|
errorKeys: spawnError && typeof spawnError === 'object' ? Object.keys(spawnError) : [],
|
||||||
|
});
|
||||||
|
|
||||||
// Provide better error messages for common issues
|
// Provide better error messages for common issues
|
||||||
let errorMessage = spawnError instanceof Error ? spawnError.message : String(spawnError);
|
let errorMessage = spawnError instanceof Error ? spawnError.message : String(spawnError);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue