Merge branch 'master' into drop-legacy-zerobin-support

This commit is contained in:
El RIDO 2025-07-17 08:00:09 +02:00
commit 410cc909ce
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
5 changed files with 23 additions and 0 deletions

View file

@ -160,6 +160,7 @@ class Database extends AbstractData
)
);
} catch (Exception $e) {
error_log('Error while attempting to insert a paste into the database: ' . $e->getMessage());
return false;
}
}
@ -253,6 +254,7 @@ class Database extends AbstractData
try {
$data = Json::encode($comment);
} catch (Exception $e) {
error_log('Error while attempting to insert a comment into the database: ' . $e->getMessage());
return false;
}
$meta = $comment['meta'];
@ -273,6 +275,7 @@ class Database extends AbstractData
)
);
} catch (Exception $e) {
error_log('Error while attempting to insert a comment into the database: ' . $e->getMessage());
return false;
}
}

View file

@ -456,6 +456,7 @@ class Filesystem extends AbstractData
self::PROTECTION_LINE . PHP_EOL . Json::encode($data)
);
} catch (Exception $e) {
error_log('Error while trying to store data to the filesystem at path "' . $filename . '": ' . $e->getMessage());
return false;
}
}