nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19234a5
)
lib/curl: implement `CurlResponseFailed::to_s`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 7 Jun 2015 13:26:17 +0000
(09:26 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 7 Jun 2015 19:41:46 +0000
(15:41 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/curl/curl.nit
patch
|
blob
|
history
diff --git
a/lib/curl/curl.nit
b/lib/curl/curl.nit
index
be31d6b
..
7b1918c
100644
(file)
--- a/
lib/curl/curl.nit
+++ b/
lib/curl/curl.nit
@@
-368,6
+368,8
@@
class CurlResponseFailed
var error_code: Int
var error_msg: String
+
+ redef fun to_s do return "{error_msg} ({error_code})"
end
# Success Abstract Response Success Class