Skip to content

Commit

Permalink
refactor: better watcher warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 12, 2023
1 parent ae96621 commit ec92cf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ export async function listenAndWatch(
)} for changes`,
);
} catch (error) {
logger.error(error);
logger.warn(
"👀 Cannot start the watcher! Please report this issue to `https://github.com/unjs/listhen`",
"Cannot start the watcher! Please report this issue to `https://github.com/unjs/listhen/issues/96`\n",
error,
"\n\n✔️ Your dev server is still running, but it won't reload automatically after changes. You need to restart it manually.",
);
}

Expand Down

0 comments on commit ec92cf4

Please sign in to comment.