Skip to content

Commit 184f088

Browse files
kwolfjairojunior
authored andcommitted
Display failure reason.
1 parent ecb16ac commit 184f088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/puppet_x/wildfly/cli_command.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def initialize(command)
88
parser = JBossCLIParser.new
99
@syntax_node = parser.parse(command)
1010

11-
raise "Invalid command syntax. Could not parse: #{command}" if @syntax_node.nil?
11+
raise "Invalid command syntax. Could not parse: #{command}\nFailure reason: #{parser.failure_reason}" if @syntax_node.nil?
1212
end
1313

1414
def address

0 commit comments

Comments
 (0)