 
                   $log.info("Impac! - KpisSvc: loaded (force=#{force})")
 
-                (error) ->
-                  $log.error('Impac! - KpisSvc: Cannot retrieve kpis templates list', error)
+                (err) ->
+                  $log.error('Impac! - KpisSvc: Cannot retrieve kpis templates list', err)
+                  $q.reject(err)
               ).finally(-> _self.locked = false )
 
             else

              kpi
            (err) ->
              $log.error("Impac! - KpisSvc: Unable to create kpi endpoint=#{endpoint}", err)
              err
          )
        ->
          { error: {message: 'Impac! - KpisSvc: Service is not initialized'} }
      )

    @update = (kpi, params) ->


            url = formatShowQuery(host, kpi.endpoint, kpi.element_watched, params)

            return $http.get(url).then(
              (response) ->
                # When no target has been defined
                if response.data.error && response.data.error.code == 422
