Ticket #1141 (closed enhancement: worksforme)

Opened 2 years ago

Last modified 2 years ago

Error on load_initial_data returns exit code = 0

Reported by: chasmail@… Owned by: andrew
Priority: minor Milestone:
Component: migrations Version: 0.7.5
Keywords: exitcode error Cc:

Description

When something going wrong on load_initial_data, migrate return exit code = 0.
In autobuilds we can't track this error, and build seems as OK, but really we have error.
Will be better if this error return exit code != 0.

e.g.
Problem installing fixture '/srv/www/sources/20120725092436/core/fixtures/initial_data.json': Traceback (most recent call last):
out: File "/srv/www/envs/env_863e8b6d837464cdb2c6cdd29081a36a35dd8fb7/lib/python2.6/site-packages/django/core/management/commands/loaddata.py", line 190, in handle
out: for obj in objects:
out: File "/srv/www/envs/env_863e8b6d837464cdb2c6cdd29081a36a35dd8fb7/lib/python2.6/site-packages/django/core/serializers/json.py", line 47, in Deserializer
out: raise DeserializationError?(e)
out: DeserializationError?: Cannot convert float to Decimal. First convert the float to a string

Change History

comment:1 Changed 2 years ago by andrew

  • Status changed from new to closed
  • Resolution set to worksforme

South already exits with an error code if an error is encountered inside a migration - I've just confirmed this on my local copy.

Note: See TracTickets for help on using tickets.