blob: aa75d38f49421ddbd3dcaeef154f399609639846 [file] [log] [blame]
Matteo Scandolo86f3f282016-08-11 11:21:33 -07001(function () {
2 'use strict';
3 angular.module('xos.UITutorial')
Matteo Scandoloef969922016-08-11 13:49:12 -07004 .service('ErrorHandler', function(TemplateHandler){
Matteo Scandolo86f3f282016-08-11 11:21:33 -07005 this.print = (msg, done) => {
Matteo Scandoloef969922016-08-11 13:49:12 -07006 done(TemplateHandler.error({msg: msg}));
Matteo Scandolo86f3f282016-08-11 11:21:33 -07007 };
8 });
9})();