about summary refs log tree commit diff stats
path: root/src/defaults.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/defaults.c')
-rw-r--r--src/defaults.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/defaults.c b/src/defaults.c
index 1c486f8..a88c80d 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -43,6 +43,14 @@ void uv_link_default_close(uv_link_t* link, uv_link_t* source,
 }
 
 
+const char* uv_link_default_strerror(uv_link_t* link, int err) {
+  if (link->parent == NULL)
+    return uv_strerror(err);
+  else
+    return uv_link_strerror(link->parent, err);
+}
+
+
 void uv_link_default_alloc_cb_override(uv_link_t* link,
                                        size_t suggested_size,
                                        uv_buf_t* buf) {