mirror of
https://github.com/xtr-dev/rondevu-server.git
synced 2025-12-10 02:43:24 +00:00
debug: add detailed error logging to service creation endpoint
Return error details in response to help debug internal server errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
src/app.ts
12
src/app.ts
@@ -260,7 +260,17 @@ export function createApp(storage: Storage, config: Config) {
|
||||
}, 201);
|
||||
} catch (err) {
|
||||
console.error('Error creating service:', err);
|
||||
return c.json({ error: 'Internal server error' }, 500);
|
||||
console.error('Error details:', {
|
||||
message: (err as Error).message,
|
||||
stack: (err as Error).stack,
|
||||
username,
|
||||
serviceFqn,
|
||||
offerId: offers[0]?.id
|
||||
});
|
||||
return c.json({
|
||||
error: 'Internal server error',
|
||||
details: (err as Error).message
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user