Skip to content

Commit

Permalink
Report also on the current host when 'rsc' fails
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Oct 16, 2023
1 parent 71c1fe9 commit 345feba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Version (development version)

* ...
### Miscellaneous

* Report also on the current host when `rsc` fails.


## Version 0.13.10 [2023-10-10]
Expand Down
4 changes: 2 additions & 2 deletions bin/rsc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
### rsc config --full
### rsc log
###
### Version: 0.13.10-9000
### Version: 0.13.10-9001
### Copyright: Henrik Bengtsson (2022-2023) and Harry Putnam (2022)
### License: ISC

Expand Down Expand Up @@ -118,7 +118,7 @@ post_mortem_too_long_server_data_dir() {

function rsc_error {
local msg extra
msg="$* This happened with rsc $(version), RStudio Server $(rserver_version_string) [$(rserver_path)], and R $(r_version_string) [$(r_path)]."
msg="$* This happened with rsc $(version) [running on $(hostname)], RStudio Server $(rserver_version_string) [$(rserver_path)], and R $(r_version_string) [$(r_path)]."
extra=$(post_mortem_too_long_server_data_dir)
if [[ -n ${extra} ]]; then
msg="${msg} ${extra}"
Expand Down

0 comments on commit 345feba

Please sign in to comment.