Create error.c

The API about print error message.