neutralinojs / neutralino.js

JavaScript API for Neutralinojs
https://neutralino.js.org/docs/api/overview
MIT License
237 stars 47 forks source link

os.execCommand returns error #44

Closed shadichy closed 2 years ago

shadichy commented 2 years ago

image

pathange-s commented 2 years ago

The following error can be resolved by wrapping await calls in an async function. Probably you didn't do that, that's why this error occurred. Add async before the function name should help you out.

shadichy commented 2 years ago

is there any way to do that (or the same thing) without async?

pathange-s commented 2 years ago

You could use promises and resolve them.

shadichy commented 2 years ago

ok, thanks sorry for wasting your time

pathange-s commented 2 years ago

No issues, glad to help :)