From eb4279d2cee43c1d3261458a64882e4c23260480 Mon Sep 17 00:00:00 2001 From: David Peer Date: Fri, 14 Jan 2022 14:34:46 +0100 Subject: [PATCH] Better error handling --- apps/lcars/lcars.app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/lcars/lcars.app.js b/apps/lcars/lcars.app.js index 6e2768998..0bd6ced11 100644 --- a/apps/lcars/lcars.app.js +++ b/apps/lcars/lcars.app.js @@ -136,9 +136,7 @@ function printData(key, y, c){ try{ _printData(key, y, c); } catch(ex){ - var text = key.toUpperCase(); - var value = "ERR-2"; - printRow(text, value, y, c); + // Show last error - next try hopefully works. } } @@ -147,7 +145,7 @@ function _printData(key, y, c){ g.setFontAlign(-1,-1,0); key = key.toUpperCase() var text = key; - var value = "ERR-1"; + var value = "ERR"; var should_print= true; if(key == "STEPS"){