* Bug #12162 fixed - tbx_build_blocks did not report errors. 93/9993/2
Clément DAVID [Tue, 11 Dec 2012 14:17:15 +0000 (15:17 +0100)]
Change-Id: Idc3f2215c12f49bf71feed2514430b8180292ae9

scilab/CHANGES_5.4.X
scilab/modules/modules_manager/macros/tbx_build_blocks.sci

index 0f1b08e..95d9a9e 100644 (file)
@@ -82,8 +82,10 @@ Xcos
 
 * Bug #12014 fixed - dep_ut help was wrongly detailed.
 
-* Bug #12031 fixed - Changes in context of superblock
-                     did not always have effect.
+* Bug #12031 fixed - Changes in context of superblock did not always have 
+                     effect.
+
+* Bug #12162 fixed - tbx_build_blocks did not report errors.
 
 
 Documentation
index 310ea41..fc6de34 100644 (file)
@@ -95,7 +95,7 @@ function tbx_build_blocks(module, names, macros_path)
         files = gif_tlbx + "/" + names(i) + [".png" ".jpg" ".gif"];
         if ~or(isfile(files)) then
             if ~generateBlockImage(block, gif_tlbx, names(i), "gif", %t) then
-                error(msprintf(gettext("%s: Unable to export %s to %s.\n"),"tbx_build_blocks",names(i), gifFiles(i)));
+                error(msprintf(gettext("%s: Unable to export %s to %s.\n"),"tbx_build_blocks",names(i), files(i)));
             end
         end
 
@@ -103,7 +103,7 @@ function tbx_build_blocks(module, names, macros_path)
         files = svg_tlbx + "/" + names(i) + [".svg" ".png" ".jpg" ".gif"];
         if ~or(isfile(files)) then
             if ~generateBlockImage(block, svg_tlbx, names(i), "svg", %f) then
-                error(msprintf(gettext("%s: Unable to export %s to %s.\n"),"tbx_build_blocks",names(i), svgFiles(i)));
+                error(msprintf(gettext("%s: Unable to export %s to %s.\n"),"tbx_build_blocks",names(i), files(i)));
             end
         end
     end