print error instead of throwing an exception