Update BaseService.cs

setError method is changed.