Improve some error descriptions
This commit is contained in:
parent
6f38eba80e
commit
f55431f8b8
3 changed files with 6 additions and 2 deletions
|
@ -230,7 +230,10 @@ impl Actor {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
log_error(attachment, ValidationError("unsupported type"));
|
log_error(
|
||||||
|
attachment,
|
||||||
|
ValidationError("unsupported attachment type"),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -79,6 +79,7 @@ pub async fn handle_announce(
|
||||||
log::warn!("repost already exists: {}", repost_object_id);
|
log::warn!("repost already exists: {}", repost_object_id);
|
||||||
Ok(None)
|
Ok(None)
|
||||||
},
|
},
|
||||||
|
// May return "post not found" error if post if not public
|
||||||
Err(other_error) => Err(other_error.into()),
|
Err(other_error) => Err(other_error.into()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ pub async fn handle_note(
|
||||||
},
|
},
|
||||||
other_type => {
|
other_type => {
|
||||||
log::warn!("discarding object of type {}", other_type);
|
log::warn!("discarding object of type {}", other_type);
|
||||||
return Err(ValidationError("unsupported type").into());
|
return Err(ValidationError("unsupported object type").into());
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue