target / theta-idl

Define communication protocols between applications using algebraic data types.
Other
45 stars 9 forks source link

Gracefully handle missing THETA_LOAD_PATH environment variable #30

Closed TikhonJelvis closed 2 years ago

TikhonJelvis commented 2 years ago

While working on cross-language tests, I noticed that the theta executable would fail with an awkward error message:

THETA_LOAD_PATH: getEnv: does not exist (no environment variable)

This PR handles this case explicitly and provides a clearer error message:

No Theta load path set. You can either:
  • specify the load path on the command line with the (--path|-p) argument
  • set the THETA_LOAD_PATH environment variable