Added is_error option back to formatPrint