Improve exception error message

This commit is contained in:
Carla Iriberri
2016-03-02 17:36:45 +01:00
parent a80664e72a
commit 76a2cb9132

View File

@@ -527,7 +527,7 @@ BEGIN
useable_key := false;
-- Other fatal error
WHEN others THEN
PERFORM _CDB_Error(sql, '_CDB_Has_Usable_Primary_ID');
PERFORM _CDB_Error(sql, Format('_CDB_Has_Usable_Primary_ID: %s', SQLERRM));
END;
-- Clean up test constraint