summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-05-07 15:49:51 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-05-07 15:49:51 +0200
commitebfeeaedf5bc357170cae971c0f6a1458ff65f65 (patch)
tree1d3fe0af5e10c237361affc3594c2e59de27c5fe /cmdline
parent3d17b9ffc7c5a417d69916c282f4756cc7e938d2 (diff)
implement correct error reporting
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-dump-solver.cc2
-rw-r--r--cmdline/apt-internal-solver.cc6
2 files changed, 4 insertions, 4 deletions
diff --git a/cmdline/apt-dump-solver.cc b/cmdline/apt-dump-solver.cc
index 5bcfe4f06..dab0cc6fd 100644
--- a/cmdline/apt-dump-solver.cc
+++ b/cmdline/apt-dump-solver.cc
@@ -46,5 +46,5 @@ int main(int argc,const char *argv[]) /*{{{*/
fclose(output);
fclose(input);
- EDSP::WriteError("I am too dumb, i can just dump!", stdout);
+ EDSP::WriteError("ERR_JUST_DUMPING", "I am too dumb, i can just dump!\nPlease use one of my friends instead!", stdout);
}
diff --git a/cmdline/apt-internal-solver.cc b/cmdline/apt-internal-solver.cc
index df6a6f569..ad00a0e23 100644
--- a/cmdline/apt-internal-solver.cc
+++ b/cmdline/apt-internal-solver.cc
@@ -158,16 +158,16 @@ int main(int argc,const char *argv[]) /*{{{*/
if (upgrade == true) {
if (pkgAllUpgrade(CacheFile) == false) {
- EDSP::WriteError("An upgrade error occured", output);
+ EDSP::WriteError("ERR_UNSOLVABLE_UPGRADE", "An upgrade error occured", output);
return 0;
}
} else if (distUpgrade == true) {
if (pkgDistUpgrade(CacheFile) == false) {
- EDSP::WriteError("An dist-upgrade error occured", output);
+ EDSP::WriteError("ERR_UNSOLVABLE_DIST_UPGRADE", "An dist-upgrade error occured", output);
return 0;
}
} else if (Fix.Resolve() == false) {
- EDSP::WriteError("An error occured", output);
+ EDSP::WriteError("ERR_UNSOLVABLE", "An error occured", output);
return 0;
}