procedure to error a process (sqr)