QBS - abort build and print error message
-
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?