Removed error constructor. Added response property.

This commit is contained in:
high 2011-09-05 14:05:16 -04:00
parent 89f5d13efb
commit a0da52e558
3 changed files with 10 additions and 10 deletions

View file

@ -50,7 +50,7 @@ namespace TShockAPI
obj = Verify(user, pass);
if (obj == null)
obj = new RestObject("401", "Invalid username/password combination provided. Please re-submit your query with a correct pair.");
obj = new RestObject("401") { Error = "Invalid username/password combination provided. Please re-submit your query with a correct pair." };
if (obj.Error != null)
return obj;