     @headers = []
 
 
-  onMenuItemClickError: (action, templateId) ->
+  onMenuItemClickError: (action, err, templateId) ->
 
     debug "error while #{action}", { templateId }
+
+    # TODO Show this error in notification
+    console.warn err
 
     showError "Error occured while #{action} the template"
 


      when 'Make Team Default'
        computeController.fetchStackTemplate template.getId(), (err, template) =>
          return @onMenuItemClickError 'making team default'  if err
          if template
            computeController.makeTeamDefault template

      when 'Share With Team'
        computeController.fetchStackTemplate template.getId(), (err, template) =>
          return @onMenuItemClickError 'sharing'  if err
          if template
            computeController.setStackTemplateAccessLevel template, 'group'

      when 'Make Private'
        computeController.fetchStackTemplate template.getId(), (err, template) =>
          return @onMenuItemClickError 'cloning'  if err
          if template
            computeController.setStackTemplateAccessLevel template, 'private'


        router.handleRoute "/Stack-Editor/#{template.getId()}"

      when 'Initialize'
        template.generateStack { verify: yes }, (err, res) =>
          return @onMenuItemClickError 'initializing', err, template.getId()  if err
          { stack } = res
          router.handleRoute "/Stack-Editor/#{template.getId()}/#{stack.getId()}"
          appManager.tell 'Stackeditor', 'reloadEditor', template.getId(), stack.getId()
