public void Init() { (bool active, string errorMessage) = fileService.IsActive(); if (!active) { logger.LogError(errorMessage); } (bool clean, string errorMessage2) = fileService.IsClean(); if (!clean) { logger.LogError(errorMessage2); } }
public void Init() { (bool active, string errorMessage) = fileService.IsActive(); if (!active) { logger.LogError(errorMessage); throw new Exception(errorMessage); } (bool clean, string errorMessage2) = fileService.IsClean(environment, false); if (!clean) { logger.LogError(errorMessage2); throw new WorkingDirectoryModifiedException(errorMessage2); } }