How can the concept of string concatenation in PHP be applied to improve error message handling in the given code snippet?

The issue with the current code snippet is that the error message handling is not very informative as it simply states "Error occurred". By using string concatenation in PHP, we can improve error message handling by including more specific details about the error that occurred, such as the actual error message from the exception. This will provide more useful information for debugging and troubleshooting.

try {
    // Some code that may throw an exception
} catch (Exception $e) {
    $errorMessage = "An error occurred: " . $e->getMessage();
    echo $errorMessage;
}