Skip to content

Commit

Permalink
fix usage error fail on macos and ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
JsLth committed Nov 7, 2024
1 parent 016452f commit f1410e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/run_photon.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ run_start <- function(self, private, args, timeout = 60, quiet = FALSE) {
start_supervise(self, private, proc, timeout, quiet)
versionize_logs(private)
log_error <- assemble_log_error(private$logs)
if (is_macos()) print(log_error)
abort_log_error(log_error, quiet, class = "start_error")

if (!self$is_running() && !nzchar(log_error)) {
Expand Down Expand Up @@ -142,7 +141,7 @@ log_callback <- function(private, quiet = FALSE) {


handle_log_conditions <- function(out) {
if (startsWith(out, "Usage")) {
if (grepl("Usage: <main class> [options]", out, fixed = TRUE)) {
log <- data.frame(
type = "ERROR",
msg = paste(
Expand Down

0 comments on commit f1410e5

Please sign in to comment.