fixes error handling
This commit is contained in:
parent
ca4f4d3af0
commit
909d6d2c4f
1 changed files with 2 additions and 1 deletions
|
|
@ -142,9 +142,10 @@ namespace ZicMoove.Data
|
|||
created = response.IsSuccessStatusCode;
|
||||
if (!created)
|
||||
{
|
||||
|
||||
// TODO throw custom exception, and catch to inform user
|
||||
var errcontent = await response.Content.ReadAsStringAsync();
|
||||
Debug.WriteLine(string.Format(Strings.CreationFailed));
|
||||
Debug.WriteLine(string.Format(Strings.CreationFailed,stringContent,ControllerUri.AbsoluteUri));
|
||||
Debug.WriteLine(errcontent);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue