Skip to content

Commit

Permalink
Improve CLI Parser error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jairojunior committed Mar 2, 2017
1 parent 56cff90 commit 4a17179
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# History

## 1.2.8

- Fix summary
- Improve CLI parser error message

## 1.2.7

- Keep compatibility with Ruby 1.8.7 (necessary while claiming compatibility with 2.7/3.8)
Expand Down
2 changes: 2 additions & 0 deletions lib/puppet_x/wildfly/cli_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class CLICommand
def initialize(command)
parser = JBossCLIParser.new
@syntax_node = parser.parse(command)

raise "Invalid command syntax. Could not parse: #{command}" if @syntax_node.nil?
end

def address
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "biemond-wildfly",
"project_page": "https://github.com/biemond/biemond-wildfly",
"source": "https://github.com/biemond/biemond-wildfly",
"summary": "Install, configure and manage Wildfly (8/9/10), JBoss EAP (6.1+/7.0+) and some Wildfly based products like apiman, Keycloak anInfinispan.",
"summary": "Install, configure and manage Wildfly (8/9/10), JBoss EAP (6.1+/7.0+) and some Wildfly based products like apiman, Keycloak and Infinispan.",
"version": "1.2.8",
"tags": [
"jboss",
Expand Down

0 comments on commit 4a17179

Please sign in to comment.