If it is a error maybe throw a exception?