report error if extra file not exist

This commit is contained in:
Li Jie
2025-08-22 08:42:29 +08:00
parent ad8aa6ac1a
commit c8eb871252

View File

@@ -561,10 +561,7 @@ func compileExtraFiles(ctx *context, verbose bool) ([]string, error) {
// Check if file exists
if _, err := os.Stat(srcFile); os.IsNotExist(err) {
if verbose {
fmt.Fprintf(os.Stderr, "Warning: extra file not found: %s\n", srcFile)
}
continue
return nil, fmt.Errorf("extra file not found: %s", srcFile)
}
// Generate output file name