OSV.dev vulnerability database client
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

claude: complete Err -> Error module rename across call sites

Follow up to the module rename: update the remaining callers that
still referenced [Err] (library [claude.ml{,i}], [client.ml], the test
driver [test.ml]), and fix one stray [^ e] string concatenation in
hermest's CLI that needed [Json.Error.to_string e] now that
[Json.of_string] yields a structured error.

+3 -3
+1 -1
lib/dune
··· 1 1 (library 2 2 (name osv) 3 3 (public_name osv) 4 - (libraries requests eio fmt logs astring json json.bytesrw)) 4 + (libraries requests eio fmt logs astring json))
+2 -1
lib/osv.ml
··· 299 299 | Ok json -> ( 300 300 match Json.of_string raw_batch_response_jsont json with 301 301 | Error msg -> 302 - Log.err (fun f -> f "batch parse failed: %s" (Json.Error.to_string msg)); 302 + Log.err (fun f -> 303 + f "batch parse failed: %s" (Json.Error.to_string msg)); 303 304 List.map (fun purl -> (purl, [])) purls 304 305 | Ok resp -> 305 306 let parsed =
-1
test/dune
··· 1 1 (test 2 2 (name test) 3 - (modules test test_osv) 4 3 (libraries osv alcotest))