summaryrefslogtreecommitdiff
path: root/src/userdata.rs
diff options
context:
space:
mode:
authorkyren <kerriganw@gmail.com>2018-01-21 20:08:51 -0500
committerkyren <kerriganw@gmail.com>2018-01-21 20:08:51 -0500
commit79ba909db02b1780e7d8bfba3f95066352541282 (patch)
treebde7c6b03db67744e0001cd26fa02556735f9119 /src/userdata.rs
parent685fc12aad6c645b243e0eae4fcc1fc23112a10c (diff)
downloadmlua-79ba909db02b1780e7d8bfba3f95066352541282.zip
Experimentally use the `failure` crate for errors
Diffstat (limited to 'src/userdata.rs')
-rw-r--r--src/userdata.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userdata.rs b/src/userdata.rs
index 08ea583..98ec717 100644
--- a/src/userdata.rs
+++ b/src/userdata.rs
@@ -477,7 +477,7 @@ mod tests {
if index.to_str()? == "inner" {
Ok(data.0)
} else {
- Err("no such custom index".to_lua_err())
+ Err(format_err!("no such custom index").to_lua_err())
}
});
}