Skip to content

Commit

Permalink
Have a message if no answer can be found
Browse files Browse the repository at this point in the history
  • Loading branch information
norm2782 committed Apr 2, 2012
1 parent 9e97514 commit 2f0c489
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/static/hjs/jcu.hs
Expand Up @@ -117,7 +117,10 @@ initInterpreter = do
let prRes = [ concatMap (\(prefix, pr) -> prefix ++ " " ++ show (subst env pr) ++ "<br />\n") (reverse proof)
++ "substitution: " ++ show env ++ "<br />\n"
| (proof, env) <- enumerateDepthFirst [] result ]
setHTML resFld (DL.concat prRes)
txt = if null prRes
then "Could not find an answer to that query"
else DL.concat prRes
setHTML resFld txt

checkTermSyntax _ = do inp <- jQuery "#txtAddRule"
input <- valString inp
Expand Down

0 comments on commit 2f0c489

Please sign in to comment.