diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-10-23 11:50:36 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-10-23 12:53:56 +0000 |
commit | 7d20230d8a3a6216e10b1229e81400322ca4bace (patch) | |
tree | d0c1a9883e4d644a55071384aaa52ef8fcdb6638 /src | |
parent | 2d99ec0838109240871dce5fd0b9ac646d7d1a99 (diff) |
CLI: Better message when building for the first time
The old one looked too much like an error message.
Change-Id: I754b582ee85970fc871178dff484eaaf98659a81
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/corelib/buildgraph/buildgraphloader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/buildgraphloader.cpp b/src/lib/corelib/buildgraph/buildgraphloader.cpp index ba0e11430..4729ea0db 100644 --- a/src/lib/corelib/buildgraph/buildgraphloader.cpp +++ b/src/lib/corelib/buildgraph/buildgraphloader.cpp @@ -171,10 +171,12 @@ void BuildGraphLoader::loadBuildGraphFromDisk() qCDebug(lcBuildGraph) << "trying to load:" << buildGraphFilePath; try { pool.load(buildGraphFilePath); - } catch (const NoBuildGraphError &e) { + } catch (const NoBuildGraphError &) { if (m_parameters.restoreBehavior() == SetupProjectParameters::RestoreOnly) throw; - m_logger.qbsInfo() << e.toString(); + m_logger.qbsInfo() + << Tr::tr("Build graph does not yet exist for configuration '%1'. " + "Starting from scratch.").arg(m_parameters.configurationName()); return; } catch (const ErrorInfo &loadError) { if (!m_parameters.overrideBuildGraphData()) { |