Skip to content

Commit ebe1fd2

Browse files
authored
Merge pull request #508 from statisticsnorway/better-language
Suggest 'cat' command for viewing detailed error message
2 parents 33b2fd7 + 43ca9c1 commit ebe1fd2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ coverage:
99
target: "80"
1010
patch:
1111
default:
12-
target: "80"
12+
target: "70"

src/ssb_project_cli/ssb_project/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def create_error_log(
117117
filename = f"{calling_function}-error-{int(time.time())}.txt"
118118
with open(f"{error_logs_path}/{filename}", "w+") as f:
119119
f.write(log)
120-
print(f"Detailed error information saved to {error_logs_path}/{filename}")
120+
print(
121+
f"Detailed error information can be viewed with the terminal command 'cat {error_logs_path}/{filename}'"
122+
)
121123
print(
122124
f"You can find the full debug log here {error_logs_path}/ssb-project-debug.log"
123125
)

0 commit comments

Comments
 (0)