Fix wrong error log when using the external parser