You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("⛔ Sorry, that's not the right answer. Please make sure your challenge_1 command modifies the file's content, but not its' permissions.\n")
117
+
print("⛔ Sorry, that's not the right answer. Please make sure your challenge_1 command modifies the file's content, but not its' permissions. Error code: {result}\n")
119
118
returnFalse
120
119
121
120
@@ -143,7 +142,7 @@ def check_challenge_2():
143
142
print(f"🚧 Your command ran, but it seems like you accidentally modified the contents of permanent.txt. Please check your command and try again.\n")
144
143
returnFalse
145
144
else:
146
-
print("⛔ Sorry, that's not the right answer. Please make sure your challenge_2 command modifies the file's permissions, but not its' content.\n")
145
+
print("⛔ Sorry, that's not the right answer. Please make sure your challenge_2 command modifies the file's permissions, but not its' content. Error code: {result}\n")
147
146
returnFalse
148
147
149
148
defcheck_challenge_3():
@@ -159,7 +158,7 @@ def check_challenge_3():
159
158
ifresult1==0:
160
159
print(f"Done.")
161
160
else:
162
-
print("⛔ Sorry, that's not the right answer. Please make sure your challenge_3 command does not modify the original random.txt file.")
161
+
print("⛔ Sorry, that's not the right answer. Please make sure your challenge_3 command does not modify the original random.txt file. Error code: {result1}")
163
162
returnFalse
164
163
165
164
# Check if copy.txt has been created
@@ -175,7 +174,7 @@ def check_challenge_3():
175
174
print(f"Your command was:\n\t> {chal.read()}\n")
176
175
returnTrue
177
176
else:
178
-
print(f"🚧 You're making progress! Your command creates copy.txt, but its contents do not match random.txt. Please check your command and try again.\n")
177
+
print(f"🚧 You're making progress! Your command creates copy.txt, but its contents do not match random.txt. Please check your command and try again. Error code: {result2}\n")
0 commit comments