From 96eeb451c0621f84c4e03ba9f66bc6c567f91488 Mon Sep 17 00:00:00 2001 From: Sal Date: Wed, 13 Apr 2016 08:41:10 -0400 Subject: [PATCH] minor cleanup --- README.md | 2 +- index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 }); }