Giuseppe Barbieri
03/04/2024, 9:54 AMif ("DATASET.json" !in diffList.results.map { it.path.substringAfterLast('/') })
call.respond(io.ktor.http.HttpStatusCode.NotAcceptable, "DATASET.json not found")
else
call.respond(io.ktor.http.HttpStatusCode.OK, "DATASET.json found")
but the error message on the GUI, after the commit (the webhook is on pre-commit) is still a generic:
> pre-commit hook aborted, run id '5d7g5aapdakrls40rrv0': 1 error occurred: * hook run id '0000_0000' failed on action 'Dataset' hook 'dataset_validator': webhook request failed (status code: 406)Ariel Shaqed (Scolnicov)
03/04/2024, 12:54 PMlakectl actions runs
will let you read it from the CLI.
HTH!Giuseppe Barbieri
03/04/2024, 2:28 PM