From a72f8dbfea095bc58c4e667509207d527f8c2f49 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Thu, 15 Feb 2018 14:30:25 +0000 Subject: [PATCH] added an error message --- moo/lib/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/lib/exec.c b/moo/lib/exec.c index a28e062..4e654b6 100644 --- a/moo/lib/exec.c +++ b/moo/lib/exec.c @@ -235,7 +235,7 @@ static MOO_INLINE int prepare_to_alloc_pid (moo_t* moo) #if defined(MOO_DEBUG_VM_PROCESSOR) MOO_LOG0 (moo, MOO_LOG_IC | MOO_LOG_FATAL, "Processor - too many processes\n"); #endif - moo_seterrnum (moo, MOO_EPFULL); + moo_seterrbfmt (moo, MOO_EPFULL, "maximum number(%zd) of processes reached", MOO_SMOOI_MAX); return -1; } @@ -303,7 +303,7 @@ static moo_oop_process_t make_process (moo_t* moo, moo_oop_context_t c) #if defined(MOO_DEBUG_VM_PROCESSOR) MOO_LOG0 (moo, MOO_LOG_IC | MOO_LOG_FATAL, "Processor - too many processes\n"); #endif - moo_seterrnum (moo, MOO_EPFULL); + moo_seterrbfmt (moo, MOO_EPFULL, "maximum number(%zd) of processes reached", MOO_SMOOI_MAX); return MOO_NULL; }