cronologic-de / xhptdc8_babel

Wrappers, Utilities and Examples for using the xHPTDC8 with various programming languages.
Mozilla Public License 2.0
0 stars 1 forks source link

xhptdc8_readout crashes if yaml filename is invalid #46

Closed ahofmann75 closed 3 years ago

ahofmann75 commented 3 years ago
PS C:\Users\andreas\Desktop\yaml-test> ls

    Verzeichnis: C:\Users\andreas\Desktop\yaml-test

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        10/14/2021   4:08 PM           1127 all_elements.yaml
-a----        10/14/2021   4:10 PM              0 empty.yaml
-a----        10/14/2021  12:08 PM          96768 xhptdc8_driver_64.dll
-a----        10/14/2021   3:47 PM        4032611 xhptdc8_info_64.exe
-a----        10/14/2021   3:47 PM        1874432 xhptdc8_readout_64.exe
-a----          8/3/2021  12:08 PM          73728 xhptdc8_ugex.exe
-a----          8/3/2021  12:04 PM         542208 xhptdc8_util_64.dll
-a----          8/3/2021  12:04 PM          73728 xhptdc8_util_test_64.exe

PS C:\Users\andreas\Desktop\yaml-test> .\xhptdc8_readout_64.exe -c .\test.yaml
-----------------------------------------------------------------------------
                 xHPTDC8 Readout Tool Application
-----------------------------------------------------------------------------

Initializing xHPTDC8 device... Done

Installed Devices Serials for TDC(s): 3
1) index 0: xHPTDC8 serial 21.348
2) index 1: xHPTDC8 serial 21.349
3) index 2: xHPTDC8 serial 21.351
Getting default cconfiguration

Configuring device using YAML file(s)
thread 'main' panicked at 'Something went wrong reading the YAML file: Os { code: 2, kind: NotFound, message: "Das System kann die angegebene Datei nicht finden." }', src\readout_aux.rs:247:18
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
File .\test.yaml...
PS C:\Users\andreas\Desktop\yaml-test>