feature #2371: fix bug returning errors from get_hash