Add better error in dev mode