We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e82c23e + e27415c commit 1b4a112Copy full SHA for 1b4a112
src/state/learnocaml_store.ml
@@ -339,7 +339,9 @@ module Token = struct
339
340
let register ?(allow_teacher=false) token =
341
if not allow_teacher && is_teacher token then
342
- Lwt.fail (Invalid_argument "Registration of teacher token not allowed")
+ Lwt.fail
343
+ (Invalid_argument "Registration of teacher token forbidden. \
344
+ Logout and use a new teacher token?")
345
else
346
Lwt.catch (fun () ->
347
Lwt_io.with_file ~mode:Lwt_io.Output ~perm:0o700 (save_path token)
0 commit comments