Skip to content

Commit 5a72be9

Browse files
committed
Added better logging
1 parent ca3bbc3 commit 5a72be9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function Start() {
2020
console.log("Interstellar's not built yet! Building now...");
2121

2222
await build({}).catch((err) => {
23-
console.error(err);
23+
console.error("Build failed:", err);
2424
process.exit(1);
2525
});
2626

@@ -69,10 +69,10 @@ async function Start() {
6969
app.use(handler);
7070
app.listen({ port }, (err, addr) => {
7171
if (err) {
72-
console.error(err);
72+
console.error("Server failed to start:", err);
7373
process.exit(1);
7474
}
75-
console.log("Listening on %s", addr);
75+
console.log("✨ Server listening on %s", addr);
7676
});
7777
}
7878

0 commit comments

Comments
 (0)