Skip to content

Commit e916a0f

Browse files
committed
fix: Check if socket exists before removing
1 parent f2e8579 commit e916a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function afterConfigLoad() {
172172
webServer = http.createServer(app);
173173
}
174174

175-
if (addr.path) {
175+
if (addr.path && fs.existsSync(addr.path)) {
176176
fs.unlinkSync(addr.path);
177177
}
178178

0 commit comments

Comments
 (0)