Fix error message for stale state to report type info correctly.