chiark / gitweb /
where-vessels: show errorInfo in acq error
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 12 Dec 2009 15:18:16 +0000 (15:18 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 12 Dec 2009 15:18:16 +0000 (15:18 +0000)
yarrg/where-vessels

index 8886c79..ecf1e06 100755 (executable)
@@ -380,7 +380,7 @@ proc acquire_showerror {} {
 }
 
 proc acquire {} {
-    global clipboard acqdeffont acqerr
+    global clipboard acqdeffont acqerr errorInfo
     set old $clipboard
     if {[catch {
        set clipboard [clipboard get]
@@ -392,6 +392,7 @@ proc acquire {} {
     } emsg]} {
        set acqerr "clipboard parsing failed: $emsg"
        puts stderr $acqerr
+       append acqerr "\n$errorInfo"
        regsub -all {.{18}} "error: [string trim $emsg]" "&\n" ewrap
        .ctrl.acquire.resframe.res configure \
            -background red -foreground white -font fixed \