Also show error type in basic error message
Added ERROR_HIDE_DETAILS define to show reference code instead of details to normal users when an error occurs