diff --git a/CHANGELOG.md b/CHANGELOG.md index b546199..e2ecc1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.14.14 | 2019-10-18 | `powerShell()` fixed error handling (windows) | | 4.14.13 | 2019-10-15 | `networkConnections()` fixed parsing (linux) | | 4.14.12 | 2019-10-14 | `getCpu()` fixed multi socket detection (linux) | | 4.14.11 | 2019-10-01 | type definitions fix dockerInfo | diff --git a/README.md b/README.md index 403315b..b46bf65 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ [![Caretaker][caretaker-image]][caretaker-url] [![MIT license][license-img]][license-url] -This is amazing. Started as a small projekt just for myself, it now has > 9,000 lines of code, > 250 versions published, up to 200,000 downloads per month, > 1 Mio downloads overall. Thank you to all who contributed to this project! +This is amazing. Started as a small project just for myself, it now has > 9,000 lines of code, > 250 versions published, up to 200,000 downloads per month, > 1 Mio downloads overall. Thank you to all who contributed to this project! ## New Version 4.0 diff --git a/docs/history.html b/docs/history.html index 6a95eac..c282dcf 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.14.14 + 2019-10-18 + powershell() fixed error handling (windows) + 4.14.13 2019-10-15 diff --git a/docs/index.html b/docs/index.html index a09e6bb..77b8285 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.14.13
+
Current Version: 4.14.14
diff --git a/lib/util.js b/lib/util.js index a72e1cd..46f691b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -321,6 +321,11 @@ function powerShell(cmd) { stdio: 'pipe' }); + if (child && !child.pid) { + child.on('error', function () { + resolve(result); + }); + } if (child && child.pid) { child.stdout.on('data', function (data) { result = result + data.toString('utf8');