aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pilot.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-20 20:07:37 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-20 20:08:25 +0000
commit04eb8afc8367e51c15c507740b2c55fce2569b0d (patch)
tree01c5a53fbcd72d9a05009792126af5c54c8486ae /lib/pilot.moon
parentdocs/index: mention license + repo (diff)
downloadalive-04eb8afc8367e51c15c507740b2c55fce2569b0d.tar.gz
alive-04eb8afc8367e51c15c507740b2c55fce2569b0d.zip
language Error tracking
Close #3
Diffstat (limited to 'lib/pilot.moon')
-rw-r--r--lib/pilot.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pilot.moon b/lib/pilot.moon
index f24270e..a687e48 100644
--- a/lib/pilot.moon
+++ b/lib/pilot.moon
@@ -1,4 +1,4 @@
-import Op, Input, match from require 'core.base'
+import Op, Input, Error, match from require 'core.base'
import udp from require 'socket'
local conn
@@ -25,7 +25,7 @@ class play extends Op
setup: (inputs) =>
{ trig, args } = match 'bang *any', inputs
- assert #args < 6, "too many arguments!"
+ assert #args < 6, Error 'argument', "too many arguments!"
super
trig: Input.event trig
args: [Input.cold a for a in *args]
@@ -40,7 +40,7 @@ class play_ extends Op
setup: (inputs) =>
{ chan, octv, note, args } = match 'any any any *any', inputs
- assert #args < 3, "too many arguments!"
+ assert #args < 3, Error 'argument', "too many arguments!"
super
chan: Input.cold chan
octv: Input.cold octv