fastled 1.4.14__py3-none-any.whl → 1.4.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
fastled/web_compile.py CHANGED
@@ -296,10 +296,20 @@ def web_compile(
296
296
 
297
297
  # Check HTTP response status first
298
298
  if libfastled_response.status_code != 200:
299
- print(
300
- f"Warning: libfastled compilation failed with HTTP status {libfastled_response.status_code}"
299
+ msg = f"Error: libfastled compilation failed with HTTP status {libfastled_response.status_code}"
300
+
301
+ # Error out here, this is a critical error
302
+ stdout = libfastled_response.content
303
+ if stdout is not None:
304
+ stdout = stdout.decode("utf-8", errors="replace") + "\n" + msg
305
+ else:
306
+ stdout = msg
307
+ return CompileResult(
308
+ success=False,
309
+ stdout=stdout,
310
+ hash_value=None,
311
+ zip_bytes=b"",
301
312
  )
302
- # Continue with sketch compilation even if libfastled fails
303
313
  else:
304
314
  # Check for embedded HTTP status in response content
305
315
  has_embedded_status, embedded_status = _check_embedded_http_status(