Use ContentModified error code

25679c2e4b
This commit is contained in:
Aleksey Kladov 2018-12-20 12:20:28 +03:00
parent dbb62b5baa
commit b2f2621c17
2 changed files with 2 additions and 1 deletions

View file

@ -55,6 +55,7 @@ pub enum ErrorCode {
ServerNotInitialized = -32002, ServerNotInitialized = -32002,
UnknownErrorCode = -32001, UnknownErrorCode = -32001,
RequestCancelled = -32800, RequestCancelled = -32800,
ContentModified = -32801,
} }
#[derive(Debug, Serialize, Deserialize, Clone)] #[derive(Debug, Serialize, Deserialize, Clone)]

View file

@ -417,7 +417,7 @@ impl<'a> PoolDispatcher<'a> {
if is_canceled(&e) { if is_canceled(&e) {
RawResponse::err( RawResponse::err(
id, id,
ErrorCode::RequestCancelled as i32, ErrorCode::ContentModified as i32,
e.to_string(), e.to_string(),
) )
} else { } else {