@@ -146,11 +146,12 @@ def get_artifacts_root() -> Path:
146146        ini_settings  =  IniSettings .load (ini_file )
147147    except  FprimeLocationUnknownException :
148148        print (
149-             "[ERROR] Not in fprime project and no deployment path provided, unable to find dictionary and/or app" 
149+             "[ERROR] Not in fprime project and no deployment path provided, unable to find dictionary and/or app" ,
150+             file = sys .stderr 
150151        )
151152        sys .exit (- 1 )
152153    except  FprimeSettingsException  as  e :
153-         print ("[ERROR]" , e )
154+         print ("[ERROR]" , e ,  file = sys . stderr )
154155        sys .exit (- 1 )
155156    assert  (
156157        "install_destination"  in  ini_settings 
@@ -165,17 +166,18 @@ def find_app(root: Path) -> Path:
165166    bin_dir  =  root  /  "bin" 
166167
167168    if  not  bin_dir .exists ():
168-         print (f"[ERROR] binary location { bin_dir }  )
169+         print (f"[ERROR] binary location { bin_dir }  ,  file = sys . stderr )
169170        sys .exit (- 1 )
170171
171172    files  =  [child  for  child  in  bin_dir .iterdir () if  child .is_file ()]
172173    if  not  files :
173-         print (f"[ERROR] App not found in { bin_dir }  )
174+         print (f"[ERROR] App not found in { bin_dir }  ,  file = sys . stderr )
174175        sys .exit (- 1 )
175176
176177    if  len (files ) >  1 :
177178        print (
178-             f"[ERROR] Multiple app candidates in binary location { bin_dir }  
179+             f"[ERROR] Multiple app candidates in binary location { bin_dir }  ,
180+             file = sys .stderr 
179181        )
180182        sys .exit (- 1 )
181183
@@ -186,7 +188,7 @@ def find_dict(root: Path) -> Path:
186188    dict_dir  =  root  /  "dict" 
187189
188190    if  not  dict_dir .exists ():
189-         print (f"[ERROR] dictionary location { dict_dir }  )
191+         print (f"[ERROR] dictionary location { dict_dir }  ,  file = sys . stderr )
190192        sys .exit (- 1 )
191193
192194    files  =  [
@@ -196,12 +198,13 @@ def find_dict(root: Path) -> Path:
196198    ]
197199
198200    if  not  files :
199-         print (f"[ERROR] No xml dictionary found in dictionary location { dict_dir }  )
201+         print (f"[ERROR] No xml dictionary found in dictionary location { dict_dir }  ,  file = sys . stderr )
200202        sys .exit (- 1 )
201203
202204    if  len (files ) >  1 :
203205        print (
204-             f"[ERROR] Multiple xml dictionaries found in dictionary location { dict_dir }  
206+             f"[ERROR] Multiple xml dictionaries found in dictionary location { dict_dir }  ,
207+             file = sys .stderr 
205208        )
206209        sys .exit (- 1 )
207210
0 commit comments