Skip to content

Commit

Permalink
Include node parser errors and validity for nodes display
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Feb 18, 2011
1 parent 5a5a2ff commit 43353a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rundeckapp/grails-app/controllers/FrameworkController.groovy
Expand Up @@ -212,9 +212,12 @@ class FrameworkController {
}
*/
def resources=[:]

def model=[
allnodes: allnodes,
nodesvalid:nodes1.valid,
nodeserror:nodes1.parserException,
nodesfile:nodes1.file,
params:params,
total:total,
allcount:allcount,
Expand All @@ -241,6 +244,9 @@ class FrameworkController {
*/
def nodesFragment = {ExtNodeFilters query->
def result = nodes(query)
if(!result.nodesvalid){
request.error="Error parsing file \"${result.nodesfile}\": "+result.nodeserror.message
}
render(template:"allnodes",model: result)
}
/**
Expand Down

0 comments on commit 43353a0

Please sign in to comment.