Print error message when caught; try to still display size if known

This commit is contained in:
Michael Becker 2019-08-15 23:57:20 -04:00
parent ffd4161a7a
commit aa0be18ba9

View File

@ -196,9 +196,14 @@ namespace UniversalEditor.ObjectModels.FileSystem
strSize = data.Length.ToString();
}
}
catch
catch (Exception ex)
{
strSize = "?";
Console.Error.WriteLine ("ue: FileSystem: File: {0}", ex.Message);
if (mvarSize != null) {
strSize = Size.ToString () + "?";
} else {
strSize = "?";
}
}
return mvarName + " [" + strSize + "]";
}