mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
ts: move nothing to save err msg in init section
This commit is contained in:
@@ -100,6 +100,7 @@ set err_stickyunloadf "$::warn_msgs: Unload of sticky module forced"
|
||||
set err_superstickyunload "$::error_msgs: Unload of super-sticky module skipped"
|
||||
set err_reqfull "$::error_msgs: Module version must be specified to load module"
|
||||
set err_nomodloaded "$error_msgs: $msg_nomodloaded"
|
||||
set err_save_emptyenv "$::error_msgs: Nothing to save in a collection"
|
||||
|
||||
|
||||
proc err_conflict {args} {
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
set baddotmod "$env(HOME)/.module"
|
||||
set baddotmodfp "$baddotmod/$collbadn"
|
||||
set baddotmoderrmsg "$error_msgs: $baddotmod exists but is not a directory"
|
||||
set emptyenverrmsg "$error_msgs: Nothing to save in a collection"
|
||||
|
||||
# clear previously existing collection directory
|
||||
if {[file exists $baddotmod]} {
|
||||
@@ -72,7 +71,7 @@ set env(HOME) "$hometestcoll"
|
||||
# setup an empty environment state
|
||||
unsetenv_path_var MODULEPATH
|
||||
|
||||
testouterr_cmd "ALL" "save" "ERR" "$emptyenverrmsg"
|
||||
testouterr_cmd "ALL" "save" "ERR" $err_save_emptyenv
|
||||
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user