HISE Logo Forum
    • Categories
    • Register
    • Login

    Add the Error Text Optional Argument to Console.assert Methods

    Scheduled Pinned Locked Moved Feature Requests
    1 Posts 1 Posters 148 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aaronventure
      last edited by aaronventure

      I want the script to throw an error when I do something stupid and tell me why.

      The assert methods seem to be what I'm looking for, but there doesn't seem to be a way to make them print the error message that I want, e.g. assertTrue prints "condition is false". Writing a whole logic gate for this seems silly. Can the assert methods be made into overloaded with the optional error string ?

      1 Reply Last reply Reply Quote 2
      • First post
        Last post

      32

      Online

      1.8k

      Users

      12.1k

      Topics

      105.0k

      Posts