Skip to content

Commit

Permalink
fix(core): only check for err in handleWorkspaceChanges
Browse files Browse the repository at this point in the history
Fixes #23031
  • Loading branch information
Cammisuli committed May 17, 2024
1 parent 217a349 commit c670664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/daemon/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const handleWorkspaceChanges: FileWatcherCallback = async (
return;
}

if (err || !changeEvents || !changeEvents.length) {
if (err) {
let error = typeof err === 'string' ? new Error(err) : err;
serverLogger.watcherLog(
'Unexpected workspace watcher error',
Expand Down

0 comments on commit c670664

Please sign in to comment.