Skip to content

Commit

Permalink
engine: log error if worker validation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Jan 24, 2024
1 parent be39fff commit d32de06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/engine-multi/src/api/validate-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export default async (api: EngineAPI) => {
// TODO argument drive this
await api.callWorker('handshake', [], {}, { timeout: 500 });
} catch (e) {
// If the handshake function isn't available, this will timeout
// Throw a nice error if the worker isn't valid
console.error(e);
throw new Error('Invalid worker path');
}
};

0 comments on commit d32de06

Please sign in to comment.