]> git.mxchange.org Git - friendica.git/commitdiff
Added last DB error
authorMichael <heluecht@pirati.ca>
Fri, 15 May 2020 12:46:16 +0000 (12:46 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 15 May 2020 12:46:16 +0000 (12:46 +0000)
mod/item.php

index 30d9f03e6bf40101a63651c7d73e27d5d374d0de..85883914fadc7ee06fd0a50af6775a328ae4552f 100644 (file)
@@ -720,8 +720,7 @@ function item_post(App $a) {
                if ($return_path) {
                        DI::baseUrl()->redirect($return_path);
                }
-
-               throw new HTTPException\InternalServerErrorException(DI::l10n()->t('Item wasn\'t stored.'));
+               throw new HTTPException\InternalServerErrorException(DI::l10n()->t('Item wasn\'t stored. Last database error: %d %s', DBA::errorNo(), dba::errorMessage()));
        }
 
        $datarray = Item::selectFirst(Item::ITEM_FIELDLIST, ['id' => $post_id]);