remove_thy: warn unknown theory (rather than error);
authorwenzelm
Wed, 20 Oct 1999 15:50:51 +0200
changeset 7892a5ba4f52991a
parent 7891 c77ad0c3c92f
child 7893 fef0738b62d7
remove_thy: warn unknown theory (rather than error);
src/Pure/Thy/thy_info.ML
     1.1 --- a/src/Pure/Thy/thy_info.ML	Wed Oct 20 15:23:55 1999 +0200
     1.2 +++ b/src/Pure/Thy/thy_info.ML	Wed Oct 20 15:50:51 1999 +0200
     1.3 @@ -348,7 +348,8 @@
     1.4  (* remove_thy *)
     1.5  
     1.6  fun remove_thy name =
     1.7 -  if is_finished name then error (loader_msg "cannot remove finished theory" [name])
     1.8 +  if is_none (lookup_thy name) then warning (loader_msg "nothing known about theory" [name])
     1.9 +  else if is_finished name then error (loader_msg "cannot remove finished theory" [name])
    1.10    else
    1.11      let val succs = thy_graph Graph.all_succs [name] in
    1.12        writeln (loader_msg "removing" succs);