mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-24 14:47:39 +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,
|
||||
});
|
||||
} 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
|
||||
let errorMessage = spawnError instanceof Error ? spawnError.message : String(spawnError);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue