Skip to content

Commit

Permalink
reformat message as requested in review
Browse files Browse the repository at this point in the history
  • Loading branch information
Lance Hepler committed Oct 31, 2019
1 parent 1b41b74 commit 1568f91
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,18 +793,13 @@ where
);
} else {
// if compiler version is the same, type misnaming is an error
if t_typ != type_name::<T>() {
if t_typ != type_name::<T>() || s_typ != type_name::<S>() {
return Err(format_err!(
"expected shardio type {}, got {}",
"Expected type {} with sort order {}, but got type {} with sort order {}",
type_name::<T>(),
t_typ
));
}
if s_typ != type_name::<S>() {
return Err(format_err!(
"expected shardio sort {}, got {}",
type_name::<S>(),
s_typ
t_typ,
s_typ,
));
}
}
Expand Down

0 comments on commit 1568f91

Please sign in to comment.