diff --git a/.npmignore b/.npmignore
index 89152b8..867bf93 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,2 +1,3 @@
dist
example
+.drone.yml
diff --git a/README.md b/README.md
index 2960e55..dab0255 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
sxml-loader
===========
-[![Build Status](http://drone.vilor.one/api/badges/vilor/sxml-loader/status.svg)](http://drone.vilor.one/vilor/sxml-loader)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
+[![Build status](http://drone.vilor.one/api/badges/vilor/sxml-loader/status.svg)](http://drone.vilor.one/vilor/sxml-loader)
+[![Package version](https://img.shields.io/npm/v/sxml-loader)](https://npmjs.com/sxml-loader)
{
cb(null, `${doctype}\n${data}`, map, meta);
- }).catch(err => {
- console.error(err);
+ }).catch(code => {
+ console.error(`Guile exited with code ${code}`);
});
}
@@ -49,7 +50,11 @@ function runScheme(interpreter, flags) {
resolve(data);
});
scheme.stderr.on('data', (data) => {
- reject(data.toString());
+ console.error(data.toString());
+ });
+ scheme.on('exit', (code) => {
+ if (code)
+ reject(code);
});
});
}
diff --git a/package.json b/package.json
index 659b9e2..16b8bfe 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sxml-loader",
- "version": "0.3.0",
+ "version": "0.3.1",
"description": "Scheme XML loader for webpack",
"main": "loader.js",
"bugs": "http://git.vilor.one/vilor/sxml-loader/issues",