Stop using Predef.error

We'd like to remove this from 2.11.0.

This patch should be backported to 0.12.3.