summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index a5c2ed8..490e1c6 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -30,8 +30,15 @@ error_chain! {
}
errors {
- ScriptError(err: String)
- IncompleteStatement(err: String)
+ ScriptError(err: String) {
+ display("Error executing lua script {}", err)
+ }
+ CallbackError(err: String) {
+ display("Error during lua callback {}", err)
+ }
+ IncompleteStatement(err: String) {
+ display("Incomplete lua statement {}", err)
+ }
}
foreign_links {