Skip to content
Snippets Groups Projects
Commit 3de74e22 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

be clearer at fatal user message

parent 60e63963
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ int ssexec_env(int argc, char const *const *argv,char const *const *envp,ssexec_
editor = getenv("EDITOR") ;
if (!editor) {
editor = getenv("SUDO_USER") ;
if (editor) log_dieu(LOG_EXIT_SYS,"get EDITOR with sudo command -- please try to use the -E sudo option e.g sudo -E 66-env <option> <service>") ;
if (editor) log_dieu(LOG_EXIT_SYS,"get EDITOR with sudo command -- please try to use the -E sudo option e.g. sudo -E 66-env -e <service>") ;
else log_dieusys(LOG_EXIT_SYS,"get EDITOR") ;
}
char const *const newarg[3] = { editor, src, 0 } ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment