Skip to content

Commit

Permalink
Add more descriptive error message (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliankolb committed Oct 16, 2023
1 parent 2429eae commit c9f05c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ feature: kernel_version
%>
<%
unless @host.installed_packages.map{ |package| package.name }.include?('kernelcare') || @host.installed_debs.map{ |package| package.name }.include?('kernelcare')
render_error(N_('Unsupported host.'))
render_error(N_('The "kernelcare" package is not installed on your managed host which is required by this job template.'))
end
%>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ feature: update_kernel
<%
unless @host.installed_packages.map{ |package| package.name }.include?('kernelcare') || @host.installed_debs.map{ |package| package.name }.include?('kernelcare')
render_error(N_('Unsupported host.'))
render_error(N_('The "kernelcare" package is not installed on your managed host which is required by this job template.'))
end
%>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider_type: script
%>
<%
unless @host.installed_packages.map{ |package| package.name }.include?('kernelcare') || @host.installed_debs.map{ |package| package.name }.include?('kernelcare')
render_error(N_('Unsupported host.'))
render_error(N_('The "kernelcare" package is not installed on your managed host which is required by this job template.'))
end
%>

Expand Down

0 comments on commit c9f05c3

Please sign in to comment.