Log the error BEFORE the marker