feat: better error message

This commit is contained in:
amhsirak
2024-12-23 23:16:54 +05:30
parent 489b8783a4
commit 2c6f5b7156

View File

@@ -73,7 +73,7 @@ async function createWorkflowAndStoreMetadata(id: string, userId: string) {
} catch (e) {
const { message } = e as Error;
logger.log('info', `Error while scheduling a run with id: ${id}`);
console.log(message);
console.log(`Error while scheduling a run with id: ${id}:`, message);
return {
success: false,
error: message,