mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Node.js: Add missing error argument to arrow function for debugging build-on-demand.mjs
This commit is contained in:
parent
199c761583
commit
c9f11f7f72
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import { spawn } from "child_process";
|
|||
|
||||
const worker = new Worker("./rust-module.cjs")
|
||||
// Define dummy error handler to prevent node from aborting on errors
|
||||
worker.on('error', () => { console.log(`Error loading rust-module.cjs: {error}`) })
|
||||
worker.on('error', (error) => { console.log(`Error loading rust-module.cjs: {error}`) })
|
||||
worker.on('exit', (code) => {
|
||||
if (code != 0) {
|
||||
console.log("slint-ui: loading rust-module.cjs failed, building now")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue