diff --git a/README.md b/README.md index 751cfb5..a47ee48 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # angular-tpl2js -> Inject AngularJS directive templates to inline JavaScript +> Inject AngularJS directive templates as inline JavaScript [![Build Status](https://img.shields.io/travis/scniro/angular-tpl2js.svg?style=flat-square)](https://travis-ci.org/scniro/angular-tpl2js) [![NPM Version](https://img.shields.io/npm/v/angular-tpl2js.svg?style=flat-square)](https://www.npmjs.com/package/angular-tpl2js) diff --git a/index.js b/index.js index fe930fb..d778358 100644 --- a/index.js +++ b/index.js @@ -166,9 +166,11 @@ function TemplateManager() { engine.templates.get(css).then(function (transformed) { engine.templates.set(transformed).then(function (output) { done(null, output); // -- out + }, function(err){ + done(err) // -- templates.set promise error }); }, function (err) { - done(err); + done(err); // -- templates.get promise error }); }