Fixed import inline error handling. Close #250