Skip to content

Commit fcce6ac

Browse files
committed
nn
1 parent 0688871 commit fcce6ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vmdplumed.tcl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,13 +2114,13 @@ proc ::Plumed::do_compute_vmdcv {} {
21142114
catch {cv delete} e
21152115
cv molid top
21162116
set script [replace_serials [getText] ]
2117-
set o [ catch { cv config $script } e ]
2118-
if {$o} {
2119-
error "A problem occurred. Error messages\nare found in VMD's text console."
2117+
if [ catch { cv config $script } e ] {
2118+
tk_messageBox -icon error -title "Error" -parent .plumed \
2119+
-message "Colvar module returned the following problem...\n\n$e." \
2120+
-detail "Further messages are found in VMD's text console."
2121+
cv reset
2122+
return
21202123
}
2121-
# puts "o>> $o"
2122-
# puts "e>> $e"
2123-
# puts "errorInfo>> $::errorInfo"
21242124

21252125
set fname [file join [tmpdir] "vmd_plumed.[pid].dat"]
21262126
set fd [open $fname w]

0 commit comments

Comments
 (0)