Improve AI video description generation and error handling
Enhance AI video description generation by adding detailed error logging in `aiService.ts` and implementing debug logs within `routes.ts` to track video processing and description generation. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 170e18f0-0f13-4eca-8643-546bba1dd8cc Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/170e18f0-0f13-4eca-8643-546bba1dd8cc/LY6xmBI
This commit is contained in:
+2
-1
@@ -73,8 +73,9 @@ Odgovori samo z opisom, brez dodatnih pojasnil.`;
|
||||
|
||||
return description;
|
||||
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.error("Error generating video description:", error);
|
||||
console.error("Error details:", error?.message || error); // More detailed error logging
|
||||
throw new Error("Napaka pri generiranju opisa s strani AI");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user