feat: clearer error log

This commit is contained in:
amhsirak
2024-11-19 16:57:42 +05:30
parent 7abcc3275a
commit f027cabdf3

View File

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