Improve error reporting when using compatibility mode.