Set Error Capture setting: Verbose

Idea created by PeterDoern on Nov 6, 2015
    • Magnus Fransson
    • Benjamin Fehr
    • Hemant Kumar Patel
    • PeterDoern
    • bigtom
    • Markus Schneider
    • airmoi

    I thought I'd suggested this in a comment or an idea somewhere else but I can't seem to find it. It's a little similar to Get (LastErrorMessage) but perhaps a touch more elegant in that it doesn't add any new script steps or functions. Anyway, if it's a duplicate then feel free to say so.



    If Set Error Capture is set to On, show a checkbox labelled Verbose. Any subsequent calls to Get ( LastError ) will return more informative result like:


    • Error Code
    • Error Message
    • Script Name and parameters
    • Script Step that triggered the error: line #, name, and parameters


    Why This is Important to Me/Use Case

    Returning the actual message allows developers to provide more meaningful errors to their users without creating error code tables and other workarounds. This is especially significant with localized files since FileMaker would have done the work already.


    Used in conjunction with a script step like Set Log [], a verbose Get ( LastError ) would allow developers to more effectively troubleshoot their scripts.