# HG changeset patch # User Nicholas Jillings # Date 1492879629 -3600 # Node ID 28bc4e90e0262233c5f695c7456a57d046892153 # Parent a41a299223abc7e23837f6f63e739c83cf1d93c5 #133 Added to specification.js (decoder) diff -r a41a299223ab -r 28bc4e90e026 js/specification.js --- a/js/specification.js Sat Apr 22 17:43:26 2017 +0100 +++ b/js/specification.js Sat Apr 22 17:47:09 2017 +0100 @@ -442,6 +442,9 @@ option[attributeName] = projectAttr; } } + if (option.type == "check" && ioNode.firstElementChild) { + option.errorMessage = ioNode.firstElementChild.textContent; + } this.options.push(option); } // Get the image node diff -r a41a299223ab -r 28bc4e90e026 tests/examples/AB_example.xml --- a/tests/examples/AB_example.xml Sat Apr 22 17:43:26 2017 +0100 +++ b/tests/examples/AB_example.xml Sat Apr 22 17:47:09 2017 +0100 @@ -46,7 +46,9 @@ - + + Test Error Message +