Remove use of deprecated getPossibleErrors (since 1.24)