eyeling 1.8.7 → 1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -49,6 +49,10 @@ function reason(opt = {}, n3_input = '') {
|
|
|
49
49
|
const res = cp.spawnSync(process.execPath, [eyelingPath, ...args, inputFile], { encoding: 'utf8', maxBuffer });
|
|
50
50
|
|
|
51
51
|
if (res.error) throw res.error;
|
|
52
|
+
|
|
53
|
+
// Always forward stderr (log:trace, warnings, parse errors, etc.)
|
|
54
|
+
if (res.stderr) process.stderr.write(res.stderr);
|
|
55
|
+
|
|
52
56
|
if (res.status !== 0) {
|
|
53
57
|
const err = new Error(res.stderr || `eyeling exited with code ${res.status}`);
|
|
54
58
|
err.code = res.status;
|