Skip to content

Commit

Permalink
Merge pull request #220 from t-b/feature/enhance-object-mapper-except…
Browse files Browse the repository at this point in the history
…ion-message

ObjectMapper.construct: Output the exception message as well
  • Loading branch information
oruebel authored Dec 13, 2019
2 parents 41688a5 + 75eac6f commit 1a01604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdmf/build/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ def construct(self, **kwargs):
object_id=builder.attributes.get(self.__spec.id_key()))
obj.__init__(**kwargs)
except Exception as ex:
msg = 'Could not construct %s object' % (cls.__name__,)
msg = 'Could not construct %s object due to %s' % (cls.__name__, ex)
raise_from(Exception(msg), ex)
return obj

Expand Down

0 comments on commit 1a01604

Please sign in to comment.