aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-04-24 18:41:31 +0000
committers-ol <s-ol@users.noreply.github.com>2020-04-24 18:41:39 +0000
commit3514e2e3c8b3ca05629426f54abc0e508941cb2f (patch)
tree3360368a4e0b40a36e232d5cd07b2b72f48f18bf
parentbetter (require) implementation (diff)
downloadalive-3514e2e3c8b3ca05629426f54abc0e508941cb2f.tar.gz
alive-3514e2e3c8b3ca05629426f54abc0e508941cb2f.zip
fix alv-wx, logging
-rw-r--r--alv/copilot.moon2
-rw-r--r--alv/logger.moon2
-rwxr-xr-xbin/alv-wx2
3 files changed, 3 insertions, 3 deletions
diff --git a/alv/copilot.moon b/alv/copilot.moon
index 5d9536a..0a9051f 100644
--- a/alv/copilot.moon
+++ b/alv/copilot.moon
@@ -96,7 +96,7 @@ class Copilot
if not ok
for name, mod in pairs @modules
mod\rollback!
- @modules = {}
+ @modules = nil
L\error err
return
diff --git a/alv/logger.moon b/alv/logger.moon
index 4887d67..1cb58b3 100644
--- a/alv/logger.moon
+++ b/alv/logger.moon
@@ -65,7 +65,7 @@ class Logger
for name, level in pairs levels
@[name] = (msg) =>
return unless @level <= level
- @put if level == levels.error or @level == levels.debug
+ @put if @level == levels.debug
where = debug.traceback '', 2
"#{msg}\n#{where}"
else
diff --git a/bin/alv-wx b/bin/alv-wx
index 7a61bbe..d8cd3f1 100755
--- a/bin/alv-wx
+++ b/bin/alv-wx
@@ -98,7 +98,7 @@ built using #{wxlua.wxLUA_VERSION_STRING} on #{wx.wxVERSION_STRING}",
@update_status!
do_idle: (event) =>
- if @file and not @paused
+ if not @paused
event\RequestMore true
@tick!