legal error bail case