Fix errtype to not break if passed an error it doesn't recognize
Fix matcher for sg error