Revert "set default error_type as Unknown"

This reverts commit 70e910e3c3fe075b8d82a9fcf2fc4e71a839db16.