mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01:00
updated exception logging.
This commit is contained in:
parent
736cd90b94
commit
1585234055
@ -255,11 +255,6 @@ internal static List<Frame> ConvertToFrames(Exception exception)
|
|||||||
|
|
||||||
var fileName = frame.GetFileName();
|
var fileName = frame.GetFileName();
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(fileName))
|
|
||||||
{
|
|
||||||
fileName = new FileInfo(fileName).Name;
|
|
||||||
}
|
|
||||||
|
|
||||||
var currentFrame = new Frame
|
var currentFrame = new Frame
|
||||||
{
|
{
|
||||||
i = index,
|
i = index,
|
||||||
|
@ -65,8 +65,8 @@ public object LoadExistingEntity(ColumnMapCollection mappings, DbDataReader read
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
string msg = string.Format("The DataMapper was unable to load the following field: '{0}'.",
|
string msg = string.Format("The DataMapper was unable to load the following field: '{0}'. {1}",
|
||||||
dataMap.ColumnInfo.Name);
|
dataMap.ColumnInfo.Name, ex.Message);
|
||||||
|
|
||||||
throw new DataMappingException(msg, ex);
|
throw new DataMappingException(msg, ex);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user