home
/
code
/
khatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d06e726
)
Log error on unexpected mute field value
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 1 Aug 2018 20:54:49 +0000
(16:54 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 1 Aug 2018 20:54:49 +0000
(16:54 -0400)
bin/khatus_controller
patch
|
blob
|
blame
|
history
diff --git
a/bin/khatus_controller
b/bin/khatus_controller
index
c2e5d91
..
49195a8
100755
(executable)
--- a/
bin/khatus_controller
+++ b/
bin/khatus_controller
@@
-137,7
+137,7
@@
function set_volume( mute, left, right) {
} else if (mute == "yes") {
db["volume"] = "X"
} else {
- # TODO: Log error - unexpected mute value
+ error("Unexpected value for 'mute' field: " mute)
}
}
@@
-511,6
+511,10
@@
function debug(location, msg, values, sep, vals, key, payload) {
}
}
+function error(msg) {
+ output_msg("ERROR", msg, "/dev/stderr")
+}
+
function ensure_numeric(n) {
return n + 0
}
This page took
0.028174 seconds
and
4
git commands to generate.