Skip to content

Commit

Permalink
Add more descriptive error message
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliankolb committed Oct 13, 2023
1 parent 2429eae commit f3d8084
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 f3d8084

Please sign in to comment.