Copied the behaviour of other executors in error printing