20
src/rpc.rs
20
src/rpc.rs
@@ -59,6 +59,26 @@ fn dag_err(e: DagError) -> ErrorObjectOwned {
|
||||
"DAG Cycle Detected",
|
||||
Some(Value::String(e.to_string())),
|
||||
),
|
||||
DagError::UnknownJob { .. } => ErrorObjectOwned::owned(
|
||||
-32022,
|
||||
"DAG Unknown Job",
|
||||
Some(Value::String(e.to_string())),
|
||||
),
|
||||
DagError::DependenciesIncomplete { .. } => ErrorObjectOwned::owned(
|
||||
-32023,
|
||||
"DAG Dependencies Incomplete",
|
||||
Some(Value::String(e.to_string())),
|
||||
),
|
||||
DagError::FlowFailed { .. } => ErrorObjectOwned::owned(
|
||||
-32024,
|
||||
"DAG Flow Failed",
|
||||
Some(Value::String(e.to_string())),
|
||||
),
|
||||
DagError::JobNotStarted { .. } => ErrorObjectOwned::owned(
|
||||
-32025,
|
||||
"DAG Job Not Started",
|
||||
Some(Value::String(e.to_string())),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user