Fix error locations
Fix error locations

Read the content of the Error object, if there is one.
Otherwise try to guess the location based on the value we just
evaluated.

Task-number: QBS-390
Change-Id: If1ac2a08e2d04b529656b3223ee22fe4e8895bee
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@theqtcompany.com>

qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qt-labs/qbs