Skip to content

Commit

Permalink
Merge pull request #6 from vitaly-erofeev/fix_error_log
Browse files Browse the repository at this point in the history
fix: Error text logging added
  • Loading branch information
bingo-soft authored May 3, 2024
2 parents 678ac85 + f2d2f11 commit caeb5f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Impl/Interceptor/CommandInvocationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ public function rethrow(): void
} catch (\Throwable $tt) {
}
}
fwrite(STDERR, sprintf("exception while executing command: %s", implode(' <= ', $errorStack)) . "\n"); //$this->throwable->getMessage()
fwrite(STDERR,
sprintf("Exception while executing command: %s\nError stack: %s\n",
$this->throwable->getMessage(),
implode(' <= ', $errorStack)
)
);
throw new ProcessEngineException(sprintf("exception while executing command: %s", implode(' <= ', $errorStack)), $this->throwable);
}
}
Expand Down

0 comments on commit caeb5f1

Please sign in to comment.