|
@@ -974,18 +974,19 @@ class Map(object):
|
|
|
subkey = 'color')))
|
|
|
|
|
|
if maps:
|
|
|
- ret = gcmd.RunCommand('g.pnmcomp',
|
|
|
- overwrite = True,
|
|
|
- input = '%s' % ",".join(maps),
|
|
|
- mask = '%s' % ",".join(masks),
|
|
|
- opacity = '%s' % ",".join(opacities),
|
|
|
- bgcolor = bgcolor,
|
|
|
- width = self.width,
|
|
|
- height = self.height,
|
|
|
- output = self.mapfile)
|
|
|
+ ret, msg = gcmd.RunCommand('g.pnmcomp',
|
|
|
+ getErrorMsg = True,
|
|
|
+ overwrite = True,
|
|
|
+ input = '%s' % ",".join(maps),
|
|
|
+ mask = '%s' % ",".join(masks),
|
|
|
+ opacity = '%s' % ",".join(opacities),
|
|
|
+ bgcolor = bgcolor,
|
|
|
+ width = self.width,
|
|
|
+ height = self.height,
|
|
|
+ output = self.mapfile)
|
|
|
|
|
|
if ret != 0:
|
|
|
- print >> sys.stderr, _("ERROR: Rendering failed")
|
|
|
+ print >> sys.stderr, _("ERROR: Rendering failed. Details: %s") % msg
|
|
|
return None
|
|
|
|
|
|
Debug.msg (3, "Map.Render() force=%s file=%s" % (force, self.mapfile))
|