Skip to content

Commit 01e1549

Browse files
nojafCopilot
andauthored
Update server/src/server.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a6056d2 commit 01e1549

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/src/server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,11 @@ async function onMessage(msg: p.Message) {
16421642
// The type says it's NormalizedPath, so we ensure it actually is
16431643
let projectRootPath = utils.normalizePath(msg_.projectRootPath);
16441644
if (projectRootPath == null) {
1645-
// Should never happen, but handle gracefully
1645+
// Should never happen, but handle gracefully and log a warning
1646+
console.warn(
1647+
"[ReScript Language Server] Failed to normalize projectRootPath from clientSentBuildAction:",
1648+
msg_.projectRootPath
1649+
);
16461650
return;
16471651
}
16481652
// TODO: sometime stale .bsb.lock dangling

0 commit comments

Comments
 (0)