add typed error
1.0.3