Don't use createLong in some cases when throwing errors