diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-10-28 13:21:29 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-10-28 13:21:29 -0700 |
commit | e309cb897f6b8c0274db54e02b567fa148b4cdca (patch) | |
tree | 6f94cb3df5375a1d68ca116ceb433acb3262a553 /src | |
parent | dfbaa89a32d75acdbfbc06f686d952ee25af6bf7 (diff) | |
download | geniza-e309cb897f6b8c0274db54e02b567fa148b4cdca.tar.gz geniza-e309cb897f6b8c0274db54e02b567fa148b4cdca.zip |
don't panic on unexpected Index type, just return Err
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index 0e1a449..a52c377 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -449,7 +449,7 @@ impl DatConnection { .copy_from_slice(&make_discovery_key(data_key)[0..32]); return Ok(()); } else { - unimplemented!("non-hyperdrive Index type: {}", index_msg.get_field_type()); + bail!("non-hyperdrive Index type: {}", index_msg.get_field_type()); } } } else { |