diff --git a/index.php b/index.php index d3744f1..9d35407 100755 --- a/index.php +++ b/index.php @@ -241,7 +241,14 @@ if ($validFormSubmitted) { hexdec(substr($params['fgColor'],4,2)) )); - $result = $qrCode->build(); + try { + $result = $qrCode->build(); + } catch (Exception $ex) { + http_response_code(500); + echo "
" . $loc['error_generation'] . "