Skip to content

Commit 727d9b2

Browse files
committed
Fix string formatting for limit-exceeded errors
1 parent 57f4423 commit 727d9b2

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

runtime/fastly/host-api/host_call.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ void handle_fastly_error(JSContext *cx, APIError err, int line, const char *func
110110
break;
111111
case FASTLY_COMPUTE_AT_EDGE_TYPES_ERROR_LIMIT_EXCEEDED:
112112
JS_ReportErrorUTF8(cx,
113-
"%s: Limit exceeded error. This error will be thrown when an attempt"
114-
"to allocate a resource has exceeded the maximum number of resources"
115-
"permitted. For example, creating too many response handles."
116-
"\n",
113+
"%s: Limit exceeded error. This error will be thrown when an attempt "
114+
"to allocate a resource has exceeded the maximum number of resources "
115+
"permitted. For example, creating too many response handles.\n",
117116
func);
118117
break;
119118
default:

runtime/js-compute-runtime/host_interface/host_call.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@ void handle_fastly_error(JSContext *cx, FastlyError err, int line, const char *f
106106
break;
107107
case FASTLY_COMPUTE_AT_EDGE_TYPES_ERROR_LIMIT_EXCEEDED:
108108
JS_ReportErrorUTF8(cx,
109-
"%s: Limit exceeded error. This error will be thrown when an attempt"
110-
"to allocate a resource has exceeded the maximum number of resources"
111-
"permitted. For example, creating too many response handles."
112-
"\n",
109+
"%s: Limit exceeded error. This error will be thrown when an attempt "
110+
"to allocate a resource has exceeded the maximum number of resources "
111+
"permitted. For example, creating too many response handles.\n",
113112
func);
114113
break;
115114
default:

0 commit comments

Comments
 (0)