diff options
author | kyren <kerriganw@gmail.com> | 2018-01-21 20:08:51 -0500 |
---|---|---|
committer | kyren <kerriganw@gmail.com> | 2018-01-21 20:08:51 -0500 |
commit | 79ba909db02b1780e7d8bfba3f95066352541282 (patch) | |
tree | bde7c6b03db67744e0001cd26fa02556735f9119 /src/userdata.rs | |
parent | 685fc12aad6c645b243e0eae4fcc1fc23112a10c (diff) | |
download | mlua-79ba909db02b1780e7d8bfba3f95066352541282.zip |
Experimentally use the `failure` crate for errors
Diffstat (limited to 'src/userdata.rs')
-rw-r--r-- | src/userdata.rs | 2 |
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()) } }); } |