Software /
code /
verse
Changeset
385:e6bf19ad5c19
verse: Pass on error from trying to require verse connection module
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 17 May 2015 15:00:30 +0200 |
parents | 384:532a379acfea |
children | 386:7b68c57ceac2 |
files | init.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/init.lua Sun May 17 14:59:28 2015 +0200 +++ b/init.lua Sun May 17 15:00:30 2015 +0200 @@ -23,9 +23,9 @@ function verse.init(...) for i=1,select("#", ...) do - local ok = pcall(require, "verse."..select(i,...)); + local ok, err = pcall(require, "verse."..select(i,...)); if not ok then - error("Verse connection module not found: verse."..select(i,...)); + error("Verse connection module not found: verse."..select(i,...)..err); end end return verse;