In which layer of the OSI framework is an error in transmitting a message detected?

A. network
B. data link
C. transport
D. physical

B. data link