summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_debug.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2013-02-26 21:12:00 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2013-02-26 21:18:16 +1100
commitd76dca165bd3312d78df7f6794d5fbab7f634ecd (patch)
tree294a83908804b7e61e5b9b82f407a9df65cc42a9 /lib/skin_parser/skin_debug.c
parent657b91acfa86430750cebb82d0ea3aaf635953bf (diff)
downloadrockbox-d76dca165bd3312d78df7f6794d5fbab7f634ecd.zip
rockbox-d76dca165bd3312d78df7f6794d5fbab7f634ecd.tar.gz
rockbox-d76dca165bd3312d78df7f6794d5fbab7f634ecd.tar.bz2
rockbox-d76dca165bd3312d78df7f6794d5fbab7f634ecd.tar.xz
checkwps: show a helpful error if the parser callback errors out
Change-Id: Ie3e35292ba8d74f0ff3d1bb3483a5e83aae0e6b6
Diffstat (limited to 'lib/skin_parser/skin_debug.c')
-rw-r--r--lib/skin_parser/skin_debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_debug.c b/lib/skin_parser/skin_debug.c
index 9537182..a204274 100644
--- a/lib/skin_parser/skin_debug.c
+++ b/lib/skin_parser/skin_debug.c
@@ -105,6 +105,9 @@ void skin_error(enum skin_errorcode error, const char* cursor)
case MULTILINE_EXPECTED:
error_message = "Expected subline separator";
break;
+ case GOT_CALLBACK_ERROR:
+ error_message = "Parser callback returned error";
+ break;
};
}