Necktschnagge / markov_chain_analyzer

MC Analyzer - a tool to calculate edge-reward expects, variances and covariances in discrete time markov chains
MIT License
0 stars 0 forks source link

Fix exception log output for CLI #33

Closed Necktschnagge closed 4 years ago

Necktschnagge commented 4 years ago

BUGFIX:

When opening an intset file which does not exist, no exception is thrown or error printed, since it is not checked and the conversion algorithm just gets some valid begin and end iterator for the file pretending to be empty.

Necktschnagge commented 4 years ago

Fixes this issue:

32

Necktschnagge commented 4 years ago

Output should now look like this:

PS D:\mona-intenso-raid\Repos\c_make_mc_analyser\Release> .\MC_Analyzer.exe

Performance Log JSON so far...

null

read_target>0>x.txt

Fetched command: read_target>0>x.txt
Executing command...
Executing command  DONE!
ERROR:   failed_instruction:  Could not open file.

Performance Log JSON so far...

null