You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwMakeStringException(0, "Reallocate an array would contain too few items: itemSize = %u, trying to allocate %u items contains %u",itemSize, newLen, used);
97
+
throwMakeStringException(JLIBERR_ArrayTooFewItems, "Reallocate an array would contain too few items: itemSize = %u, trying to allocate %u items contains %u",itemSize, newLen, used);
97
98
98
99
size_t allocSize = (size_t)itemSize * newLen;
99
100
void *newhead = realloc(_head, allocSize);
100
101
if (!newhead)
101
102
{
102
103
IERRLOG("Out of memory in Array allocator: itemSize = %u, trying to allocate %u items", itemSize, max);
103
-
throwMakeStringException(0, "Out of memory in Array allocator: itemSize = %u, trying to allocate %u items",itemSize, max);
104
+
throwMakeStringException(JLIBERR_ArrayAllocationFailed, "Out of memory in Array allocator: itemSize = %u, trying to allocate %u items",itemSize, max);
// Non-empty status but not a recognized success or failure condition
162
162
if (getExpertOptBool("k8sFailOnUnknownErr", true))
163
-
throwmakeStringExceptionV(0, "Job %s completed with unknown status condition [%s]", jobName.str(), output.str());
163
+
throwmakeStringExceptionV(JLIBERR_UtilJobSCompletedWithUnknownStatusCondition, "Job %s completed with unknown status condition [%s]", jobName.str(), output.str());
164
164
else
165
165
{
166
166
WARNLOG("Job %s completed with unknown status condition [%s] - assuming success based on expert/@k8sFailOnUnknownErr=false", jobName.str(), output.str());
throwmakeStringExceptionV(0, "Failed to run %s - pod not scheduled after %u seconds: %s ", jobName.str(), pendingTimeoutSecs, output.str());
188
+
throwmakeStringExceptionV(JLIBERR_UtilFailedToRunSPodNot, "Failed to run %s - pod not scheduled after %u seconds: %s ", jobName.str(), pendingTimeoutSecs, output.str());
189
189
}
190
190
elseif (streq(output, "True"))
191
191
wasScheduled = true;
192
192
}
193
193
if (0 == totalWaitTimeSecs)
194
194
break;
195
195
if ((INFINITE != totalWaitTimeSecs) && msTick()-start > totalWaitTimeSecs*1000)
0 commit comments