Revert "Create error.h"

This reverts commit a6db90e7a543149e49669c5a340e4004d465656a.