diff options
author | Doug Zongker <dougz@android.com> | 2009-06-10 23:11:53 +0200 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2009-06-12 01:25:29 +0200 |
commit | 9931f7f3c1288171319e9ff7d053ebaad07db720 (patch) | |
tree | 42ae5b40309f6ea3410c5ad496f81368675274f7 /edify/main.c | |
parent | Merge change 3514 into donut (diff) | |
download | android_bootable_recovery-9931f7f3c1288171319e9ff7d053ebaad07db720.tar android_bootable_recovery-9931f7f3c1288171319e9ff7d053ebaad07db720.tar.gz android_bootable_recovery-9931f7f3c1288171319e9ff7d053ebaad07db720.tar.bz2 android_bootable_recovery-9931f7f3c1288171319e9ff7d053ebaad07db720.tar.lz android_bootable_recovery-9931f7f3c1288171319e9ff7d053ebaad07db720.tar.xz android_bootable_recovery-9931f7f3c1288171319e9ff7d053ebaad07db720.tar.zst android_bootable_recovery-9931f7f3c1288171319e9ff7d053ebaad07db720.zip |
Diffstat (limited to 'edify/main.c')
-rw-r--r-- | edify/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/edify/main.c b/edify/main.c index 4d65da2d8..c95968376 100644 --- a/edify/main.c +++ b/edify/main.c @@ -158,7 +158,14 @@ int main(int argc, char** argv) { printf("parse returned %d\n", error); if (error == 0) { char* result = Evaluate(NULL, root); - printf("result is [%s]\n", result == NULL ? "(NULL)" : result); + if (result == NULL) { + char* errmsg = GetError(); + printf("result was NULL, message is: %s\n", + (errmsg == NULL ? "(NULL)" : errmsg)); + ClearError(); + } else { + printf("result is [%s]\n", result); + } } return 0; } |