Skip to content

Commit 7458a63

Browse files
fantixmmastrac
andauthored
gel-auth: fix client error message (#527)
Cherry-pick from geldata/gel#8231 Co-authored-by: Matt Mastracci <matthew@mastracci.com>
1 parent 8454ec6 commit 7458a63

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gel-auth/src/postgres/client_state_machine.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,8 @@ impl ConnectionState {
331331
},
332332
});
333333
}
334-
(Ready, _) | (Error, _) => {
335-
return Err(invalid_state!("Unexpected drive for Ready or Error state"))
336-
}
334+
(Ready, _) => return Err(invalid_state!("Unexpected drive for Ready state")),
335+
(Error, _) => return Err(invalid_state!("Unexpected drive for Error state")),
337336
_ => return Err(invalid_state!("Unexpected (state, drive) combination")),
338337
}
339338
Ok(())

0 commit comments

Comments
 (0)