Print error message when caught; try to still display size if known
This commit is contained in:
parent
ffd4161a7a
commit
aa0be18ba9
@ -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 + "]";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user