Commit 4d5b9279 authored by dev0tion's avatar dev0tion

Properly display send error

parent 77c95831
...@@ -116,7 +116,7 @@ export class SendComponent implements OnInit { ...@@ -116,7 +116,7 @@ export class SendComponent implements OnInit {
console.log(error); console.log(error);
} }
else { else {
alert(error.json().errors[0].message); alert(error.json().errors[0].description);
} }
} }
}, },
...@@ -158,7 +158,7 @@ export class SendComponent implements OnInit { ...@@ -158,7 +158,7 @@ export class SendComponent implements OnInit {
console.log(error); console.log(error);
} }
else { else {
alert(error.json().errors[0].message); alert(error.json().errors[0].description);
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment