Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QBS - abort build and print error message
Forum Updated to NodeBB v4.3 + New Features

QBS - abort build and print error message

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 889 Views 1 Watching
  • 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.
  • W Offline
    W Offline
    WoJo
    wrote on last edited by
    #1

    Hello,
    I am looking for a possibility to abort a qbs build and print a build error from inside the qbs script, something like this:

    @
    Application {
    /* other stuff */
    property int myProperty: {
    if( /condition 1/ ) return 1;
    else if( /condition 2/ ) return 2;
    else { print("ERROR"); exit(0); }
    }
    }
    @

    I saw this in the qbs reference: "message(), warning(), error()":http://qt-project.org/wiki/Qbs-Quick-Reference#681121eeb2122879eaa860d5f6a523f1

    But it didn't work, neither throw nor print() or error(). Does anyone know a solution?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved