Mercurial > hg > dmlib
comparison src/dmres.c @ 1274:1b1e7c771698
Clarify certain initialization failure situations.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 03 Oct 2016 09:19:40 +0300 |
parents | beae399c6473 |
children | 086f49d616ac |
comparison
equal
deleted
inserted
replaced
1273:132706e3b94b | 1274:1b1e7c771698 |
---|---|
1083 } | 1083 } |
1084 else | 1084 else |
1085 { | 1085 { |
1086 // Non-fatal | 1086 // Non-fatal |
1087 dmErrorDBGMsg( | 1087 dmErrorDBGMsg( |
1088 "Failed to open PACK, falling back to STDIO, '%s' %d: %s\n", | 1088 "Failed to open PACK '%s' %d: %s\n", |
1089 lib->packFilename, ret, dmErrorStr(ret)); | 1089 lib->packFilename, ret, dmErrorStr(ret)); |
1090 } | 1090 } |
1091 } | 1091 } |
1092 else | 1092 else |
1093 { | 1093 { |
1121 initialized = TRUE; | 1121 initialized = TRUE; |
1122 } | 1122 } |
1123 #endif | 1123 #endif |
1124 | 1124 |
1125 if (!initialized) | 1125 if (!initialized) |
1126 return DMERR_INIT_FAIL; | 1126 return dmErrorDBG(DMERR_INIT_FAIL, "Failed all resource initialization modes.\n"); |
1127 | 1127 |
1128 // Okay, classify resources | 1128 // Okay, classify resources |
1129 if (lib->resources != NULL && classifier != NULL) | 1129 if (lib->resources != NULL && classifier != NULL) |
1130 { | 1130 { |
1131 DMResource *node; | 1131 DMResource *node; |