Skip to content

Commit

Permalink
Merge pull request #4 from jenkinsci/feature/suppress_error
Browse files Browse the repository at this point in the history
Suppress error
  • Loading branch information
sue445 committed Jan 11, 2016
2 parents 0e57923 + ef6f3e5 commit c75cdb5
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ class YamlAxis extends Axis {
return computedValues
}

// NOTE: Plugin can not get workspace location in this method
YamlLoader loader = new YamlLoader(yamlFile: yamlFile)

try {
computedValues = loader.loadValues(name)
computedValues
} catch (IOException e){
LOGGER.log(Level.SEVERE, "Can not read yamlFile: ${yamlFile}", e)
} catch (IOException){
LOGGER.log(Level.SEVERE, "Can not read yamlFile: ${yamlFile}")
[]
}
}
Expand All @@ -51,8 +52,8 @@ class YamlAxis extends Axis {
try {
computedValues = loader.loadValues(name)
computedValues
} catch (IOException e){
LOGGER.log(Level.SEVERE, "Can not read yamlFile: ${yamlFile}", e)
} catch (IOException){
LOGGER.log(Level.SEVERE, "Can not read yamlFile: ${yamlFile}")
[]
}
}
Expand Down

0 comments on commit c75cdb5

Please sign in to comment.