mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
Merge #297
297: Use ContentModified error code r=matklad a=matklad
25679c2e4b
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
d8c6b8d999
@ -55,6 +55,7 @@ pub enum ErrorCode {
|
||||
ServerNotInitialized = -32002,
|
||||
UnknownErrorCode = -32001,
|
||||
RequestCancelled = -32800,
|
||||
ContentModified = -32801,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
|
@ -386,7 +386,7 @@ impl<'a> PoolDispatcher<'a> {
|
||||
if is_canceled(&e) {
|
||||
RawResponse::err(
|
||||
id,
|
||||
ErrorCode::RequestCancelled as i32,
|
||||
ErrorCode::ContentModified as i32,
|
||||
e.to_string(),
|
||||
)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user