public static GitDetail TryGetFileDetail(string filePath) { GitDetail detail = null; try { detail = GetFileDetail(filePath); } catch (Exception) { // ignored } return(detail); }
public static GitDetail TryGetFileDetail(string filePath) { GitDetail detail = null; try { detail = GetFileDetail(filePath); } catch (Exception ex) { Logger.LogWarning($"Skipping GetFileDetail. Exception found: {ex.GetType()}, Message: {ex.Message}"); Logger.LogVerbose(ex.ToString()); } return(detail); }
public static GitDetail TryGetFileDetail(string filePath) { if (string.IsNullOrEmpty(filePath)) { return(null); } GitDetail detail = null; try { detail = GetFileDetailCore(filePath); } catch (Exception) { // ignored } return(detail); }