Kaynağa Gözat

Fixing exit code for volume packer (#714)

* Fixing exit code for pack.ts

* Changelog

---------

Co-authored-by: David Sehnal <dsehnal@users.noreply.github.com>
Jose Manuel Duarte 2 yıl önce
ebeveyn
işleme
63a9aef5eb
2 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 2 0
      CHANGELOG.md
  2. 1 0
      src/servers/volume/pack/main.ts

+ 2 - 0
CHANGELOG.md

@@ -6,10 +6,12 @@ Note that since we don't clearly distinguish between a public and private interf
 
 ## [Unreleased]
 
+- Fix exit code of volume pack executable (pack.ts). Now exits with non-0 status when an error happens
 - Remove pca transform from components ui focus (too distracting)
 - Fix artefacts with opaque outlines behind transparent objects
 - Fix polymer trace visual not updating
 
+
 ## [v3.31.1] - 2023-02-05
 
 - Improve Component camera focus based on the PCA of the structure and the following rules:

+ 1 - 0
src/servers/volume/pack/main.ts

@@ -18,6 +18,7 @@ export async function pack(input: { name: string, filename: string }[], blockSiz
         await create(outputFilename, input, blockSizeInMB, isPeriodic, format);
     } catch (e) {
         console.error('[Error] ' + e);
+        process.exit(1);
     }
 }