This PR makes CLI print starlark runtime error with full stacktrace.
Currnelty the CLI prints runtime errors like this, now way to tell where the error is from:
> isopod test /Users/mingfei.huang/workspace/paas-addon-common-bundle/addons/istio
invalid call of non-function (string)
FAIL /Users/mingfei.huang/workspace/paas-addon-common-bundle/addons/istio/cert_update_test.ipd
With this PR:
> go run . test /Users/mingfei.huang/workspace/paas-addon-common-bundle/addons/istio
Traceback (most recent call last):
/Users/mingfei.huang/workspace/paas-addon-common-bundle/addons/istio/cert_update_test.ipd:8:24: in test_install_cert_update
./cert_update.ipd:24:17: in install_cert_update
./cert_update.ipd:122:7: in install_cron
Error: invalid call of non-function (string)
FAIL /Users/mingfei.huang/workspace/paas-addon-common-bundle/addons/istio/cert_update_test.ipd
This PR makes CLI print starlark runtime error with full stacktrace. Currnelty the CLI prints runtime errors like this, now way to tell where the error is from:
With this PR: