[view] [fix] minor edit to properly handle error in view