It's probably better to use `util.isError(actual)`, especially after the changes made in 00eb8d4b498f66154552e526e932c610ae14d000.