Issue #556 : updated exception error message

This commit is contained in:
antisnatchor
2012-06-30 18:38:25 +01:00
parent 5d47739c71
commit bd6065eff9

View File

@@ -181,7 +181,7 @@ module BeEF
#exec_results = BeEF::Module.execute(modk, params[:session], mod_params)
#exec_results != nil ? '{"success":"true","command_id":"'+exec_results.to_s+'"}' : '{"success":"false"}'
rescue Exception => e
print_error "Invalid JSON input for module '#{params[:mod_id]}'"
print_error "Invalid JSON input passed to endpoint /api/modules/multi"
error 400 # Bad Request
end
end