Browse Source

g.gui.timline: beautify error message

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67324 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 years ago
parent
commit
471196e8ba
1 changed files with 4 additions and 4 deletions
  1. 4 4
      gui/wxpython/timeline/frame.py

+ 4 - 4
gui/wxpython/timeline/frame.py

@@ -346,8 +346,8 @@ class TimelineFrame(wx.Frame):
             datasets = self._checkDatasets(datasets)
             if not datasets:
                 return
-        except GException:
-            GError(parent=self, message=_("Invalid input data"))
+        except GException, e:
+            GError(parent=self, message=unicode(e), showTraceback=False)
             return
 
         self.datasets = datasets
@@ -444,8 +444,8 @@ class TimelineFrame(wx.Frame):
             datasets = self._checkDatasets(datasets)
             if not datasets:
                 return
-        except GException:
-            GError(parent=self, message=_("Invalid input data"))
+        except GException, e:
+            GError(parent=self, message=unicode(e), showTraceback=False)
             return
         self.datasets = datasets
         self.datasetSelect.SetValue(','.join(map(lambda x: x[0] + '@' + x[1], datasets)))