bitDecayGames / haxeflixel-template

Basic game template with FMOD and Bitlytics tie-ins ready to build from
3 stars 1 forks source link

Have better failure scenario for weird ANALYTICS_TOKEN values #48

Open MondayHopscotch opened 3 years ago

MondayHopscotch commented 3 years ago

During testing I set the ANALYTICS_TOKEN (passed to build as API_KEY) results in a failure that took a while to understand:

lime build html5 -D API_KEY=BLAH -D dev_analytics
Called from ? line 1
Called from CommandLineTools.hx line 1895
Called from CommandLineTools.hx line 22
Called from a C function
Called from CommandLineTools.hx line 125
Called from CommandLineTools.hx line 1617
Called from /Users/runner/hostedtoolcache/haxe/4.2.1/x64/std/neko/_std/Sys.hx line 73
Uncaught exception - std@put_env

We should have the macro do a little more checking to see if the given API key is 'good' or not.