Debug unknown error

@ransomr 
Please review.