Allow overriding the warn handler.

We'd like to pull errors during translation into our error pipeline, so we can be notified if anything falls back to the key.