Refactor safe_read

Make safe_read a bit more flexible,and allow it to catch a wider number of errors.
This commit is contained in:
Martin Sumner 2018-09-19 13:03:00 +01:00
parent d088a6baf0
commit e02c6df3ed
2 changed files with 59 additions and 44 deletions

View file

@ -361,7 +361,9 @@
{"CDB19",
{info, "Sample timings in microseconds for sample_count=~w "
++ "with totals of cycle_count=~w "
++ "fetch_time=~w index_time=~w"}}
++ "fetch_time=~w index_time=~w"}},
{"CDB20",
{error, "Error ~w caught when safe reading a file to length ~w"}}
]).