Skip to content
Snippets Groups Projects
Commit dea9775d authored by Nigel Reed's avatar Nigel Reed
Browse files

js exit != perl exit

parent 3b20d5ee
No related branches found
No related tags found
1 merge request!535Fix for typeError
Pipeline #8896 passed
...@@ -392,7 +392,7 @@ if (typeof http_request.query.sub !== 'undefined' && ...@@ -392,7 +392,7 @@ if (typeof http_request.query.sub !== 'undefined' &&
]; ];
if(!thread) { if(!thread) {
writeln("Error: No such message."); writeln("Error: No such message.");
exit; exit(0);
  • Owner

    Is there a reason we don't return; instead?

  • Author Developer

    Because, surprisingly, it doesn't print "Error: no such message" if you use return rather than exit and I don't know why and I'm not going to delve into it. I can delete the commit if you like.

  • Owner

    That’s fine. Just curious

  • Please register or sign in to reply
} }
var keys = Object.keys(thread.messages); var keys = Object.keys(thread.messages);
thread.__first = keys[0]; thread.__first = keys[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment