Move the unoptimized exception message in the general evaluation function.