コード例 #1
0
        public static string FormatTimeoutError(WinWrap.Basic.BasicNoUIObj basicNoUIObj, bool timedout)
        {
            // get the line that's executing right now
            var sb = new StringBuilder();

            sb.AppendLine((string)basicNoUIObj.Query("GetStack")["Caller[0]"]);
            sb.AppendLine(timedout ? "time exceeded" : "paused" + ", terminating script.");
            sb.AppendLine("");
            return(sb.ToString());
        }