 
               (err) ->
                 $log.error 'Impac! - KpisSvc: Could not retrieve KPI (show) at: ' + kpi.endpoint, err
-                err
+                $q.reject(err)
             )
           )
         ->
           $log.error 'Impac! - KpisSvc: Service not initialized'
-          {error: { message: 'Impac! - KpisSvc: Service is not initialized' }}
+          $q.reject({error: { message: 'Impac! - KpisSvc: Service is not initialized' }})
       ).finally ( -> kpi.isLoading = false )
 
     @create = (source, endpoint, elementWatched, opts={}) ->


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

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

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

    @update = (kpi, params) ->
