fixes error handling

This commit is contained in:
2017-03-09 15:18:07 +01:00
parent 9b0f867950
commit 58f61cf8e3

View File

@ -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