We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32025ea commit 911bf1eCopy full SHA for 911bf1e
src/handlers/upload.rs
@@ -92,6 +92,13 @@ async fn generate_and_upload_documentation(
92
file_uploader: &FileUploader<'_, impl PinataClient, impl S3Client>,
93
) -> Result<String, UploadError> {
94
let forc_doc_bin_path = forc_path.join("bin/forc-doc");
95
+ if !forc_doc_bin_path.exists() {
96
+ tracing::warn!(
97
+ "forc-doc binary not found at {}; skipping documentation generation",
98
+ forc_doc_bin_path.display()
99
+ );
100
+ return Err(UploadError::FailedToGenerateDocumentation);
101
+ }
102
103
// Generate documentation
104
tracing::info!(
0 commit comments