summaryrefslogtreecommitdiff
path: root/src/cairo-misc.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-03 09:51:52 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-03 09:51:52 +0100
commit73469e693c02e6a99a32f12ac333737b47408e5e (patch)
treeb6e133eee2392a740aa4c19221040ca10ed94d95 /src/cairo-misc.c
parentab86662ab499e1f29c0f8c4248771e730c281e3f (diff)
downloadcairo-73469e693c02e6a99a32f12ac333737b47408e5e.tar.gz
[cairo] Tweak error strings.
Rewrite a few error strings so that they more closer match the documentation. Where they differ, I believe I have chosen the more informative combination of the two texts.
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r--src/cairo-misc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c
index 20f0ef1b1..8d9557e96 100644
--- a/src/cairo-misc.c
+++ b/src/cairo-misc.c
@@ -58,13 +58,13 @@ cairo_status_to_string (cairo_status_t status)
{
switch (status) {
case CAIRO_STATUS_SUCCESS:
- return "success";
+ return "no error has occurred";
case CAIRO_STATUS_NO_MEMORY:
return "out of memory";
case CAIRO_STATUS_INVALID_RESTORE:
- return "cairo_restore without matching cairo_save";
+ return "cairo_restore() without matching cairo_save()";
case CAIRO_STATUS_INVALID_POP_GROUP:
- return "cairo_pop_group without matching cairo_push_group";
+ return "no saved group to pop, i.e. cairo_pop_group() without matching cairo_push_group()";
case CAIRO_STATUS_NO_CURRENT_POINT:
return "no current point defined";
case CAIRO_STATUS_INVALID_MATRIX:
@@ -118,11 +118,11 @@ cairo_status_to_string (cairo_status_t status)
case CAIRO_STATUS_INVALID_CLUSTERS:
return "input clusters do not represent the accompanying text and glyph arrays";
case CAIRO_STATUS_INVALID_SLANT:
- return "invalid value for an input #cairo_font_slant_t";
+ return "invalid value for an input cairo_font_slant_t";
case CAIRO_STATUS_INVALID_WEIGHT:
- return "invalid value for an input #cairo_font_weight_t";
+ return "invalid value for an input cairo_font_weight_t";
case CAIRO_STATUS_INVALID_SIZE:
- return "invalid value for the size of the input (surface, pattern, etc.)";
+ return "invalid value (typically too big) for the size of the input (surface, pattern, etc.)";
case CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED:
return "user-font method not implemented";
default: