Migration: better error messages