Removed error constructor. Added response property.
This commit is contained in:
parent
89f5d13efb
commit
a0da52e558
3 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue