diff options
author | Doug Zongker <dougz@android.com> | 2009-06-12 17:25:38 +0200 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-06-12 17:25:38 +0200 |
commit | 6c301e244d0d14e3b2983350d7c383abf52b89f7 (patch) | |
tree | c6d6705c9cf240991a29b4773180691afadaf623 /edify/main.c | |
parent | fix simulator build by excluding more of recovery (diff) | |
parent | edify extensions for OTA package installation, part 1 (diff) | |
download | android_bootable_recovery-6c301e244d0d14e3b2983350d7c383abf52b89f7.tar android_bootable_recovery-6c301e244d0d14e3b2983350d7c383abf52b89f7.tar.gz android_bootable_recovery-6c301e244d0d14e3b2983350d7c383abf52b89f7.tar.bz2 android_bootable_recovery-6c301e244d0d14e3b2983350d7c383abf52b89f7.tar.lz android_bootable_recovery-6c301e244d0d14e3b2983350d7c383abf52b89f7.tar.xz android_bootable_recovery-6c301e244d0d14e3b2983350d7c383abf52b89f7.tar.zst android_bootable_recovery-6c301e244d0d14e3b2983350d7c383abf52b89f7.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; } |