search for: error_condition

Displaying 2 results from an estimated 2 matches for "error_condition".

2006 Jul 12
0
Give form elements "fieldWithErrors" class in non-std. way?
...t for text boxes just fine). Do I have to create a snippet of code in my RHTML to figure out if the target_list_ids attribute is empty (which it will be in an error condition) and then set a variable to ''fieldWithErrors'' that I can use in my check_box_tag call? e.g. <% if (error_condition) error_class = ''fieldWithErrors'' end %> <%= check_box_tag("current_job[target_list_ids][]" :class => error_class, ...%> Does that make sense? -- Posted via http://www.ruby-forum.com/.
2000 Jun 20
2
Critical EGD handling in 2.1.1p1
...failure or restart of EGD will lead to a "fatal()" abort of the sshd server process. Since a dying server process can not be accepted, I would recommend to not have sshd call it "fatal()" if EGD cannot be queried and there is already enough seed available. Something like: if (error_condition) { close(egd_socket); egd_socket = -1; /* Try to reopen next time */ if (RAND_status() == 0) fatal("Could not get entropy"); /* not enough seed -> fatal */ } Best regards, Lutz -- Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE BTU Cottbus...