libopenjpegenc: Add error messages.