Fix static analyzer warning `Method accepting NSError** should have a non-void return value to indicate whether or not an error occurred`