summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2019-01-16 21:32:37 +0200
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2019-01-16 21:32:37 +0200
commite31ec2662ecd5da4fe19bf932090bf8dec1f84cc (patch)
tree80347d42eb0f0c526adb9c88193b8d9e75ddbda4
parent6eac0f298812e11119397577909ae78f015fd23c (diff)
Spy: improve error messages
-rw-r--r--src/lib/spy_preload.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/spy_preload.c b/src/lib/spy_preload.c
index fb2551b..79f8297 100644
--- a/src/lib/spy_preload.c
+++ b/src/lib/spy_preload.c
@@ -910,13 +910,13 @@ elm_init(int argc, char **argv)
910 const char *replaced = STRING_GET(replaced_obj); 910 const char *replaced = STRING_GET(replaced_obj);
911 if (!_class_find_by_name(replacer, &unit)) 911 if (!_class_find_by_name(replacer, &unit))
912 { 912 {
913 fprintf(stderr, "Class %s not found\n", replacer); 913 fprintf(stderr, "Class %s not found in config.json / Class_Replacement.\nExiting\n", replacer);
914 exit(1); 914 exit(1);
915 } 915 }
916 unit = NULL; 916 unit = NULL;
917 if (replaced && *replaced && !_class_find_by_name(replaced, &unit)) 917 if (replaced && *replaced && !_class_find_by_name(replaced, &unit))
918 { 918 {
919 fprintf(stderr, "Class %s not found\n", replaced); 919 fprintf(stderr, "Class %s not found in config.json / Class_Replacement.\nExiting\n", replaced);
920 exit(1); 920 exit(1);
921 } 921 }
922 } 922 }
@@ -926,13 +926,13 @@ elm_init(int argc, char **argv)
926 const char *extender = STRING_GET(extender_obj); 926 const char *extender = STRING_GET(extender_obj);
927 if (!_class_find_by_name(extender, &unit)) 927 if (!_class_find_by_name(extender, &unit))
928 { 928 {
929 fprintf(stderr, "Class %s not found\n", extender); 929 fprintf(stderr, "Class %s not found in config.json / Class_Extension.\nExiting\n", extender);
930 exit(1); 930 exit(1);
931 } 931 }
932 unit = NULL; 932 unit = NULL;
933 if (extended && *extended && !_class_find_by_name(extended, &unit)) 933 if (extended && *extended && !_class_find_by_name(extended, &unit))
934 { 934 {
935 fprintf(stderr, "Class %s not found\n", extended); 935 fprintf(stderr, "Class %s not found in config.json / Class_Extension.\nExiting\n", extended);
936 exit(1); 936 exit(1);
937 } 937 }
938 } 938 }