lib/coderunner/run.rb in coderunner-0.11.21 vs lib/coderunner/run.rb in coderunner-0.11.22
- old
+ new
@@ -682,11 +682,11 @@
# Parameters:
#{(rcp.variables + rcp.run_info + [:version, :code, :modlet, :sys]).inject({}){|hash, var| hash[var] = send(var) unless (!send(var) and send(var) == nil); hash}.pretty_inspect}
# Actual Command:
-# #{run_command}
+# #{run_command.gsub(/\n/, "\n#")}
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
EOF
end
@@ -1008,8 +1008,19 @@
# is to return an empty string.
def code_run_environment
""
end
+
+def warning(message)
+ eputs "Warning: " + message; sleep 0.3
+end
+
+class SubmitError < StandardError
+end
+
+def error(message)
+ raise("Error: " + message)
+end
end
end