update:modify index.js all functions' about error methods