Skip to content

Commit 013940f

Browse files
committed
에러 메시지 로깅
1 parent b90f7ba commit 013940f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ async function main() {
321321
console.log(`\t---> ${recordCount} rows were selected `);
322322
} catch (error) {
323323
console.log(`----------------------------------[ERROR]--------------------------------------\n`);
324-
console.log(`${sql}`);
324+
console.log(error);
325+
console.log(`\n\nSQL: ${sql}`);
325326
console.log('\n-------------------------------------------------------------------------------');
326327
}
327328
}

0 commit comments

Comments
 (0)