Changed returns in CApp to Error::(...)