Improve customError