Skip to content

Commit

Permalink
look for "Error:" in output.
Browse files Browse the repository at this point in the history
  • Loading branch information
WYMZ (Michael Svingel) committed Nov 5, 2024
1 parent 866deff commit 66f38d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion R/status.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ get_status <- function(md) {
stringr::str_subset(pattern = "^ *\\{\\.cell-output \\.cell-output-error\\}") |>
stringr::str_remove_all("\\{[^\\}]*\\}") |>
stringr::str_squish()


python_errors <- x |>
stringr::str_subset(pattern = "(?i).*Error.*") |>
stringr::str_remove_all("\\{[^\\}]*\\}") |>
stringr::str_squish()

errors <- c(errors, python_errors)

# Warnings

warnings <- x |>
Expand Down

0 comments on commit 66f38d5

Please sign in to comment.