File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
scripts/west_commands/utils Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 656
656
/scripts /ncs-toolchain-version-minimum.txt @ nrfconnect/ncs-co-build-system @ nrfconnect/ncs-ci
657
657
/scripts /tools-versions- * .txt @ nrfconnect/ncs-co-build-system @ nrfconnect/ncs-ci
658
658
/scripts /requirements- * .txt @ nrfconnect/ncs-co-build-system @ nrfconnect/ncs-ci
659
+ /scripts /west_commands /utils / @ gmarull
659
660
/scripts /west_commands /create_board / @ gmarull
660
661
/scripts /west_commands /ncs-bicr.py @ gmarull
661
662
/scripts /west_commands /ncs-board-actions.py @ gmarull
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2024 Nordic Semiconductor ASA
2
+ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3
+
4
+ import json
5
+ import sys
6
+ import traceback
7
+
8
+
9
+ def install_json_excepthook ():
10
+ def excepthook (type , value , tb ):
11
+ output = {
12
+ "errors" : [
13
+ {
14
+ "type" : type .__name__ ,
15
+ "message" : str (value ),
16
+ "traceback" : "" .join (traceback .format_tb (tb ))
17
+ }
18
+ ]
19
+ }
20
+
21
+ print (json .dumps (output , indent = 2 ), file = sys .stderr )
22
+ sys .exit (1 )
23
+
24
+ sys .excepthook = excepthook
You can’t perform that action at this time.
0 commit comments