Fix errors not showing up in editor

This commit is contained in:
Cyberboss
2017-09-22 10:58:51 -04:00
parent fc3541a4ce
commit 7d0a95faf6
+6 -3
View File
@@ -232,12 +232,15 @@ namespace TGControlPanel
if (entry == null)
{
StaticFileEditTextbox.ReadOnly = true;
StaticFileEditTextbox.Text = "ERROR: " + entry;
StaticFileEditTextbox.Text = "ERROR: " + error;
if (unauthorized && !title.Contains(" (UNAUTHORIZED)"))
StaticFileListBox.Items[newIndex] = title + " (UNAUTHORIZED)";
}
StaticFileEditTextbox.ReadOnly = false;
StaticFileEditTextbox.Text = entry;
else
{
StaticFileEditTextbox.ReadOnly = false;
StaticFileEditTextbox.Text = entry;
}
}
}
}